Bug 66071 - Bogus f_avail/f_bavail in df during resize
Summary: Bogus f_avail/f_bavail in df during resize
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: btrfs (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Josef Bacik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 13:51 UTC by David Sterba
Modified: 2016-03-20 10:09 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.9.9
Tree: Mainline
Regression: No


Attachments

Description David Sterba 2013-11-28 13:51:27 UTC
http://permalink.gmane.org/gmane.comp.file-systems.btrfs/30418

While btrfs does its resizing, df stats are messed up.
Seen in linux-3.9.9. Don't know if it still occurs.

11:55 ares07:/home/snap # btrfs fi resize 250G /home/snap/red &
[1] 2861
Resize '/home/snap/red' of '250G'
11:55 ares07:/home/snap #
11:55 ares07:/home/snap # df -h
Filesystem         Size  Used Avail Use% Mounted on
/dev/loop0         600G  239G   16E   1% /home/snap/red
                                ^^^
/dev/loop0  629145600   250249968 18014398497657468   1% /home/snap/red

(So it's not exactly a magic number (2^n)-1 or something.)
btrfs-progs-v0.20-rc1-358-g194aa4a.tar.bz2

Note You need to log in before you can comment on or make changes to this bug.