mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-24 23:22:27 +00:00
btrfs-progs: tests: add basic mkfs tests for zoned + rst
Test all combinations of data x metadata for the supported profiles. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
863fedd1cb
commit
05d338d4ab
25
tests/mkfs-tests/030-zoned-rst/test.sh
Executable file
25
tests/mkfs-tests/030-zoned-rst/test.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Verify mkfs for all currently supported profiles of zoned + raid-stripe-tree
|
||||
|
||||
source "$TEST_TOP/common" || exit
|
||||
|
||||
setup_root_helper
|
||||
setup_loopdevs 4
|
||||
prepare_loopdevs
|
||||
TEST_DEV=${loopdevs[1]}
|
||||
|
||||
profiles="single dup raid1 raid1c3 raid1c4 raid10"
|
||||
|
||||
for dprofile in $profiles; do
|
||||
for mprofile in $profiles; do
|
||||
# It's sufficient to specify only 'zoned', the rst will be enabled
|
||||
run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f -O zoned -d "$dprofile" -m "$mprofile" "${loopdevs[@]}"
|
||||
done
|
||||
done
|
||||
|
||||
run_mustfail "unsupported profile raid56 created" \
|
||||
$SUDO_HELPER "$TOP/mkfs.btrfs" -f -O zoned -d raid5 -m raid5 "${loopdevs[@]}"
|
||||
run_mustfail "unsupported profile raid56 created" \
|
||||
$SUDO_HELPER "$TOP/mkfs.btrfs" -f -O zoned -d raid6 -m raid6 "${loopdevs[@]}"
|
||||
|
||||
cleanup_loopdevs
|
Loading…
Reference in New Issue
Block a user