bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file sy
From:
Paul Eggert
Subject:
bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file system sizes
Date:
Fri, 11 May 2012 10:04:51 -0700
User-agent:
Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
On 05/11/2012 03:42 AM, Jim Meyering wrote:
it's not clear that there is even a problem with our
current use of statfs on glibc-based Linux systems.
Yes, I find it curious. GNU/Linux statvfs
simply invokes statfs internally, right?
So why should it matter whether df uses statvfs
or statfs? And yet from Nikolaus Rath's evidence
it does appear that we have a problem with current FUSE systems.
In the long run I'd rather have the Linux-based code
use statvfs, since that's the more-standard interface.
Nikolaus, does the attached hack fix things for you?
Basically, it transforms a configure-time test into a
run-time test. After applying this patch,
you'll need to run autoreconf + configure before 'make'.