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

From: Joel Becker
Date: Fri Oct 10 2003 - 07:28:54 EST


On Thu, Oct 09, 2003 at 03:26:47PM -0700, Linus Torvalds wrote:
> 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.

User space has to know about frsize for O_DIRECT alignment.
Some times you just want to write the 512 B you have in hand, not have to
read-modify-write the n KB around it. frsize is much nicer that hunting
up the appropriate block device to BLKSSZGET on .


Joel


--

"I have never let my schooling interfere with my education."
- Mark Twain

Joel Becker
Senior Member of Technical Staff
Oracle Corporation
E-mail: joel.becker@xxxxxxxxxx
Phone: (650) 506-8127
-
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/