lkml.org 
[lkml]   [2003]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: statfs() / statvfs() syscall ballsup...

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.111 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site