Make the df calculations of available space the same as that done in
authorkrw <krw@openbsd.org>
Fri, 16 May 2014 13:44:09 +0000 (13:44 +0000)
committerkrw <krw@openbsd.org>
Fri, 16 May 2014 13:44:09 +0000 (13:44 +0000)
commit4b285d114bd915045846b3bfb4f39a16d71b94ff
treef0d9d5a3cf71c94764fd83cdc34552dbd813b096
parentb8e8a7617dfdcd0de4d0a0159bb3c332126762fc
Make the df calculations of available space the same as that done in
ffs_statfs().

In 1998, with /usr/src/sys/ufs/ffs/ffs_vfsops.c r1.16, mickey@
improved the calculation of available blocks in ffs_statfs().

Yesterday guenther@ noticed that this fix had not been applied to the
same calculation being done by df(8) when run against raw
devices. Which meant different values were displayed depending on
which device/file system you gave to df.

ok otto@
bin/df/ffs_df.c