btrfs: add test for zone auto reclaim
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 29 Apr 2021 12:39:27 +0000 (21:39 +0900)
committerEryu Guan <guaneryu@gmail.com>
Sun, 9 May 2021 14:56:56 +0000 (22:56 +0800)
commit0a095db5ef777305fe1e40bf4f09fc11e2822a21
treef99d16edf1a260cf6526bad4aaae3246b68bd517
parenta6dbebcb19e96049d1e8efaa98b8817bafaad730
btrfs: add test for zone auto reclaim

Add a test for commit 18bb8bbf13c1 ("btrfs: zoned: automatically
reclaim zones").

This test creates a two file on a newly created FS in a way that
when we delete the first one, an auto reclaim process will be
triggered by the FS.

After the reclaim process, it verifies that the data was moved to
another zone and old zone was successfully reset.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/config
tests/btrfs/237 [new file with mode: 0755]
tests/btrfs/237.out [new file with mode: 0644]
tests/btrfs/group