btrfs-progs: tests: add mkfs test for raid0/1 and raid10/2

Extend basic tests with the degenerate raid0 and raid10, coming in 5.15.
Mount of a freshly created filesystem works even on older kernels too.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2021-08-27 15:34:57 +02:00
parent a177ef7dd4
commit 0534441e2e

View File

@ -77,4 +77,14 @@ else
test_do_mkfs -d raid1c4 -m raid1c4 ${loopdevs[@]}
fi
# Non-standard profile/device combinations
# Single device raid0, two device raid10 (simple mount works on older kernels too)
if check_min_kernel_version 5.13; then
test_do_mkfs -d raid0 -m raid0 "$dev1"
test_get_info
test_do_mkfs -d raid10 -m raid10 "${loopdevs[1]}" "${loopdevs[2]}"
test_get_info
fi
cleanup_loopdevs