On Tue, Feb 08, 2005 at 05:43:08PM +0100, Jim Meyering wrote: > Does stat's --file-system (-f) option do what you want? > > $ stat -f / > File: "/" > ID: 0 Namelen: 255 Type: ext2/ext3 > Blocks: Total: 1032080 Free: 887328 Available: 834894 Size: > 4096
No, as strace-ing reveals only statfs is called, and indeed, looking at the source, %s is actually printed there, while it was in this bug previously already discovered that %s is actually NOT the size of a block (%s is f_bsize, and not f_frsize). So, the "stat -f /" is actually misleading, even though it might be possible that in linux f_bsize and f_frsize are always equal, this is not so defined. --Jeroen -- Jeroen van Wolffelaar [EMAIL PROTECTED] (also for Jabber & MSN; ICQ: 33944357) http://Jeroen.A-Eskwadraat.nl -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]