]> git.neil.brown.name Git - LaFS.git/commit
Small fix for 'df' on subset filesystems
authorNeilBrown <neilb@suse.de>
Sat, 5 Mar 2011 00:25:20 +0000 (11:25 +1100)
committerNeilBrown <neilb@suse.de>
Sat, 5 Mar 2011 00:25:20 +0000 (11:25 +1100)
commit12df19d015e1c70e844193aa390576d32df10ca5
treea9373d947e859e2c66e36843a5c061122a29dd48
parent0df71d97eb7cf2b5afd6556d8855b7d36ba57f8d
Small fix for 'df' on subset filesystems

We should never report more available space than free space.

'free' space might be limited by the blocks_allowed, while
the 'available' space calculation is for the total filesystem.
So if free is actually less than the calculated 'available', we must
reduce the 'available'.

Signed-off-by: NeilBrown <neilb@suse.de>
super.c