Rein Klazes wijn@wanadoo.nl writes:
Because as soon as fstatvfs is fixed (for some combination of kernel/filesystem/libc), you are wrong again. The f_blocks, f_bfree and other fields are supposed to be counted as f_frsize sized blocks. And at least for nfs, f_frsize does not always equal f_bsize.
Ah I see your point, yes I suppose glibc could try to do the clever thing and scale the returned values according to f_frsize. So yes I guess we have to give up on fstatvfs, too bad.