bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file sy
From:
Nikolaus Rath
Subject:
bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file system sizes
Date:
Thu, 10 May 2012 18:56:12 -0400
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3
On 05/10/2012 01:17 PM, Andreas Schwab wrote:
> Paul Eggert <address@hidden> writes:
>
>>> Am I missing something?
>>
>> Hard to day. You don't mention which operating system you're
>> using. Looking at the source code, if
>> df uses statvfs, and if f_frsize is not nonsense, df
>> should be using f_frsize, so I don't see a bug here.
>
> statvfs is explicitly rejected with glibc, and there is no alternative
> that uses statfs with f_frsize.
Could you elaborate? What do you mean with "statvfs is explicitly
rejected with glibc"?
Thanks,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C