btrfs-progs: tests: mkfs/017: check dm target support

If dm-thin or dm-linear are not supported, let's skip the test
altogether instead of throwing an error.

Issue: #192
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Marcos Paulo de Souza 2019-12-17 17:31:53 -03:00 committed by David Sterba
parent 4e02678c29
commit 1636a6cb36
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_global_prereq udevadm
check_global_prereq dmsetup
check_dm_target_support linear thin
setup_root_helper
prepare_test_dev