btrfs: Test if btrfs will report false ENOSPC error balancing small metadata chunk
authorQu Wenruo <wqu@suse.com>
Tue, 29 Jan 2019 12:32:22 +0000 (20:32 +0800)
committerEryu Guan <guaneryu@gmail.com>
Wed, 30 Jan 2019 01:39:08 +0000 (09:39 +0800)
commit7f3a0bf60d6eed7252b8859eef0570cb543c1bac
tree73aba6ddeceef3c669ca3607a6ae11547813abde
parent3bea049648f8cf797aac7e85c04f8e8d996fa3cf
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>
tests/btrfs/182 [new file with mode: 0755]
tests/btrfs/182.out [new file with mode: 0644]
tests/btrfs/group