mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 23:52:17 +00:00
btrfs-progs: tests: add basic mkfs test for block-group-tree
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
166db10ceb
commit
00628edb26
15
tests/mkfs-tests/028-block-group-tree/test.sh
Executable file
15
tests/mkfs-tests/028-block-group-tree/test.sh
Executable file
@ -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"
|
Loading…
Reference in New Issue
Block a user