df: use f_frsize instead of f_bsize for correct sizes
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 23 Jun 2016 08:42:40 +0000 (10:42 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 24 Jun 2016 02:12:01 +0000 (04:12 +0200)
commit8f4faa1e3db91fc7b50d633e6f9b2f04bf978bb2
treecc1b3cd4e5ef53ec4c3ac88dae3b4523a393174b
parent59f81976249a85cf02bd73c2395f018033069466
df: use f_frsize instead of f_bsize for correct sizes

Use the correct field f_frsize instead of f_bsize.

The statfs f_bsize is the "Optimal transfer block size" while the
f_frsize is the "Fragment size (since Linux 2.6)". On some FUSE
filesystems those may differ.

Fixes bug 9046

URL: https://bugs.busybox.net/show_bug.cgi?id=9046

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/df.c