bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file sy
From:
Andreas Schwab
Subject:
bug#11406: Bug? df uses f_bsize instead of f_frsize to calculate file system sizes
Date:
Fri, 11 May 2012 09:33:20 +0200
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (gnu/linux)
Paul Eggert <address@hidden> writes:
> On 05/10/2012 04:04 PM, Nikolaus Rath wrote:
>> But why isn't
>> it du using statvfs instead of statfs?
>
> m4/fsusage.m4 says why:
>
> Do not use statvfs on systems with GNU libc on Linux, because that function
> stats all preceding entries in /proc/mounts, and that makes df hang if even
> one of the corresponding file systems is hard-mounted, but not available.
This is no longer true if the kernel is at least 2.6.36.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."