btrfs: test balance profile convert functionality
authorNikolay Borisov <nborisov@suse.com>
Tue, 1 Oct 2019 09:04:19 +0000 (12:04 +0300)
committerEryu Guan <guaneryu@gmail.com>
Sun, 6 Oct 2019 14:36:45 +0000 (22:36 +0800)
commit94c19d60a2ce3a1f74b641dd3919c28a3211396b
tree3e4e305ce8a8ef1fcd56609d2df6defc817546f3
parent771f879c1a06628492265ded0339c84451f56c56
btrfs: test balance profile convert functionality

Add basic test to ensure btrfs conversion functionality is tested.
This test exercies conversion to all possible types of the data
portion. This is sufficient since from the POV of relocation we are
only moving blockgroups.

v5.3 and later kernel needs the following patch to pass the test

btrfs: Fix a regression which we can't convert to SINGLE profile

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/195 [new file with mode: 0755]
tests/btrfs/195.out [new file with mode: 0644]
tests/btrfs/group