From 00628edb268312e69c51114502a69c17543a0f78 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 block-group-tree Signed-off-by: David Sterba --- tests/mkfs-tests/028-block-group-tree/test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/mkfs-tests/028-block-group-tree/test.sh diff --git a/tests/mkfs-tests/028-block-group-tree/test.sh b/tests/mkfs-tests/028-block-group-tree/test.sh new file mode 100755 index 00000000..ed4797c0 --- /dev/null +++ b/tests/mkfs-tests/028-block-group-tree/test.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# Basic check if mkfs supports the block-group-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 block-group-tree + +run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$TEST_DEV" | \ + grep -q BLOCK_GROUP_TREE || _fail "block group tree not created"