From 2cb9d21ed03daa8ac8003f2db32b26d060530687 Mon Sep 17 00:00:00 2001 From: Chandra Seetharaman Date: Fri, 10 Jun 2011 16:03:41 -0500 Subject: [PATCH] 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 Signed-off-by: Eric Sandeen --- 049 | 1 + common.rc | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/049 b/049 index 3d3f030b..c6c4faa3 100755 --- a/049 +++ b/049 @@ -64,6 +64,7 @@ _require_nobigloopfs _require_nonexternal _require_scratch _require_loop +_require_ext2 rm -f $seq.full diff --git a/common.rc b/common.rc index c510c66e..44c746df 100644 --- a/common.rc +++ b/common.rc @@ -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() -- 2.39.5