From 863fedd1cbac827aa2c18920f0c23440d3ba966c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 10 Oct 2023 20:03:48 +0200 Subject: [PATCH] btrfs-progs: tests: add basic mkfs test for raid-stripe-tree Signed-off-by: David Sterba --- tests/mkfs-tests/029-raid-stripe-tree/test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/mkfs-tests/029-raid-stripe-tree/test.sh diff --git a/tests/mkfs-tests/029-raid-stripe-tree/test.sh b/tests/mkfs-tests/029-raid-stripe-tree/test.sh new file mode 100755 index 00000000..c3edd36d --- /dev/null +++ b/tests/mkfs-tests/029-raid-stripe-tree/test.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# Basic check if mkfs supports the raid-stripe-tree + +source "$TEST_TOP/common" || exit + +check_prereq mkfs.btrfs +check_prereq btrfs + +setup_root_helper +prepare_test_dev + +run_check_mkfs_test_dev -O raid-stripe-tree + +run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$TEST_DEV" | \ + grep -q RAID_STRIPE_TREE || _fail "raid stripe tree not created"