This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: An importanta patch for glibc 2.1.1


> 
> Meanwhile, it is probably best to either set statvfs.f_frsize = 0 (to
> indicate that it is not supported, this is allowed by Unix98) or set

How do you support

	fsblkcnt_t    f_blocks  total number of blocks on file
				system in units of f_frsize

if you set statvfs.f_frsize = 0? I can image people use f_bsize to
optimize I/O on the filesystem. f_frsize is mainly used for calculating
filesytem usage.

> statvfs.f_frsize = statfs.f_bsize (pretend the "fundamental" blocksize
> is equal to the "ordinary" blocksize).
> 

I think it is the right way to go.


-- 
H.J. Lu (hjl@gnu.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]