coreutils/m4
Pádraig Brady 0863f018f0 stat: report the correct block size for file system usage
struct statfs has the f_frsize member since Linux 2.6,
so use that rather than f_bsize which can be different.
Note the related df change mentioned in NEWS is handled
in gnulib by using statvfs() rather than statfs()
on Linux > 2.6.36 (where statvfs doesn't hang) and the
same method as stat for Linux 2.6 kernels earlier than that.
stat(1) doesn't use statvfs() on GNU/Linux as the f_type
member isn't available there.
Note the change to not use statvfs() on GNU/Linux was introduced
in gnulib commit eda39b8 16-08-2003.

* m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Check for the f_frsize
member in the statfs structure.
* src/stat.c: Use (struct statfs).f_frsize if available.
* NEWS (Bug fixes): Mention this stat fix, and the related df fix
coming in the next gnulib update.
* THANKS.in: Add Nikolaus.

Reported and Tested by Nikolaus Rath
2012-05-16 00:21:25 +01:00
..
boottime.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
ChangeLog-2007 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
check-decl.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
fd-reopen.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
gmp.m4 maint: update all copyright year number ranges 2012-01-01 10:04:06 +01:00
include-exclude-prog.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
jm-macros.m4 maint: rely on gnulib's new sys_resource module 2012-05-04 12:13:26 +02:00
lib-check.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
prereq.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
stat-prog.m4 stat: report the correct block size for file system usage 2012-05-16 00:21:25 +01:00
strnumcmp.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
xattr.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00
xfts.m4 maint: use single copyright year range 2012-01-27 11:35:24 +01:00