From 75939e4a09fd164e40870967e280e52f775c17cd Mon Sep 17 00:00:00 2001 From: ccooper Date: Mon, 18 Oct 2004 23:29:43 +0000 Subject: [PATCH] - fix logic inversion in check_fstype function, and update for use with 2.6 (.ko modules) --- lustre/tests/sanity.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index b703291..fe93e98 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1916,12 +1916,14 @@ test_54d() { run_test 54d "fifo device works in lustre ======================" check_fstype() { - grep -q $FSTYPE /proc/filesystems && return 0 + grep -q $FSTYPE /proc/filesystems && return 1 modprobe $FSTYPE - grep -q $FSTYPE /proc/filesystems && return 0 + grep -q $FSTYPE /proc/filesystems && return 1 insmod ../$FSTYPE/$FSTYPE.o - grep -q $FSTYPE /proc/filesystems && return 0 - return 1 + grep -q $FSTYPE /proc/filesystems && return 1 + insmod ../$FSTYPE/$FSTYPE.ko + grep -q $FSTYPE /proc/filesystems && return 1 + return 0 } test_55() { -- 1.8.3.1