bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#294206: stat(1) unclear about block size


From: Jeroen van Wolffelaar
Subject: Re: Bug#294206: stat(1) unclear about block size
Date: Tue, 8 Feb 2005 18:03:01 +0100
User-agent: Mutt/1.3.28i

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
address@hidden (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]