Re: [PATCH] NFS: report more appropriate block size for directories.

2015-05-13 Thread Trond Myklebust
On Fri, 2015-05-08 at 11:14 -0400, Scott Mayhew wrote: > On Fri, 08 May 2015, NeilBrown wrote: > > > > > In glibc 2.21 (and several previous), a call to opendir() will > > result in a 32K (BUFSIZ*4) buffer being allocated and passed to > > getdents. > > > > However a call to fdopendir() results

Re: [PATCH] NFS: report more appropriate block size for directories.

2015-05-08 Thread Scott Mayhew
On Fri, 08 May 2015, NeilBrown wrote: > > In glibc 2.21 (and several previous), a call to opendir() will > result in a 32K (BUFSIZ*4) buffer being allocated and passed to > getdents. > > However a call to fdopendir() results in an 'fstat' request to > determine block size and a matching buffer a