mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: Make ext2 requirement explicit for test 049
Test 049 depends on ext2 module being supported by the kernel. This patch makes it a explicit, instead of failing the test with obscure message. Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
This commit is contained in:
committed by
Eric Sandeen
parent
7c990a9b39
commit
2cb9d21ed0
@@ -64,6 +64,7 @@ _require_nobigloopfs
|
||||
_require_nonexternal
|
||||
_require_scratch
|
||||
_require_loop
|
||||
_require_ext2
|
||||
|
||||
rm -f $seq.full
|
||||
|
||||
|
||||
@@ -769,6 +769,24 @@ _require_loop()
|
||||
fi
|
||||
}
|
||||
|
||||
# this test requires ext2 filesystem support
|
||||
#
|
||||
_require_ext2()
|
||||
{
|
||||
if [ "$HOSTOS" != "Linux" ]
|
||||
then
|
||||
_notrun "This test requires linux for ext2 filesystem support"
|
||||
fi
|
||||
|
||||
modprobe ext2 >/dev/null 2>&1
|
||||
if grep ext2 /proc/filesystems >/dev/null 2>&1
|
||||
then
|
||||
:
|
||||
else
|
||||
_notrun "This test requires ext2 filesystem support"
|
||||
fi
|
||||
}
|
||||
|
||||
# this test requires that (large) loopback device files are not in use
|
||||
#
|
||||
_require_nobigloopfs()
|
||||
|
||||
Reference in New Issue
Block a user