btrfs: Test if btrfs will report false ENOSPC error balancing small metadata chunk

This is a test case for a long existing bug, caused by
over-estimated metadata space_info::bytes_may_use.

There is one proposed patch for btrfs-progs to fix it, titled:
"btrfs-progs: balance: Sync the fs before balancing metadata chunks"

The test case itself is almost the same as btrfs/181, which uses
small files to bump the reserved space to trigger the false alert.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Qu Wenruo
2019-01-29 20:32:22 +08:00
committed by Eryu Guan
parent 3bea049648
commit 7f3a0bf60d
3 changed files with 64 additions and 0 deletions
+1
View File
@@ -184,3 +184,4 @@
179 auto qgroup dangerous
180 auto quick qgroup limit
181 auto quick balance
182 auto quick balance