mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-24 15:12:47 +00:00
btrfs-progs: tests: don't list toplevel subvolme in 'subvol list'
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
f4a82d9e67
commit
1d4224e4aa
18
tests/misc-tests/027-subvol-list-deleted-toplevel/test.sh
Executable file
18
tests/misc-tests/027-subvol-list-deleted-toplevel/test.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# check that the toplevel subvolume is not listed as regular or deleted
|
||||||
|
|
||||||
|
source "$TOP/tests/common"
|
||||||
|
|
||||||
|
check_prereq mkfs.btrfs
|
||||||
|
check_prereq btrfs
|
||||||
|
|
||||||
|
prepare_test_dev
|
||||||
|
|
||||||
|
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
|
||||||
|
run_check_mount_test_dev
|
||||||
|
run_check_stdout $SUDO_HELPER "$TOP/btrfs" subvolume list "$TEST_MNT" |
|
||||||
|
grep -i -q "id 5" && _fail "found toplevel among regular"
|
||||||
|
run_check_stdout $SUDO_HELPER "$TOP/btrfs" subvolume list -d "$TEST_MNT" |
|
||||||
|
grep -i -q "id 5.*DELETED" && _fail "found toplevel among deleted"
|
||||||
|
|
||||||
|
run_check_umount_test_dev
|
Loading…
Reference in New Issue
Block a user