fstests: check if the scratch device is an lv device for certain tests
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Nov 2021 21:10:27 +0000 (16:10 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 14 Nov 2021 12:50:15 +0000 (20:50 +0800)
commitbf3d7aba247d9ea89d4bf50ead44f2964237ead5
treea43ed724014c2e64d1b7a08256c1b8be552017f4
parent090e349abcbb31dcde14618290bf0fdd8b4eca61
fstests: check if the scratch device is an lv device for certain tests

I use lvm to carve up a large disk so I can run the btrfs raid related xfstests.
However this messes with tests that try to greate lvm devices ontop of
SCRATCH_DEV.  Handle this by adding a _require_scratch_nolvm helper to skip
tests that are going to try and create lvm devices.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/generic/081
tests/generic/108
tests/generic/459