Re: statfs() / statvfs() syscall ballsup...

From: Linus Torvalds
Date: Thu Oct 09 2003 - 17:27:51 EST



On Thu, 9 Oct 2003, Trond Myklebust wrote:
>
> Question: how we're supposed to reconcile the two cases for something
> like NFS, where these 2 values are supposed to differ?

I'd suggest going for "optimal block size everywhere".

> Note that f_bsize is usually larger than f_frsize, hence conversions
> from the former to the latter are subject to rounding errors...

User space shouldn't know or care about frsize, and it doesn't even
necessarily make any sense on a lot of filesystems, so make it easy for
the user. It's not as if the rounding errors really matter.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/