From 83159ed8e5300ea2ba68bc55b53bd8c6e636ba4e Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 11 May 2007 06:36:54 +0000 Subject: [PATCH] Branch HEAD Don't run lfscktest.sh if the OSTs are remote. --- lustre/tests/acceptance-small.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh index e00ab89..e43528c 100755 --- a/lustre/tests/acceptance-small.sh +++ b/lustre/tests/acceptance-small.sh @@ -190,8 +190,17 @@ for NAME in $CONFIGS; do if [ "$LFSCK" != "no" -a -x /usr/sbin/lfsck ]; then title lfsck E2VER=`e2fsck -V 2>&1 | head -n 1 | cut -d' ' -f 2` - [ `echo $E2VER | cut -d. -f2` -ge 39 ] && \ - [ "`echo $E2VER | grep cfs`" ] && sh lfscktest.sh + if grep -q obdfilter /proc/fs/lustre/devices; then + if [ `echo $E2VER | cut -d. -f2` -ge 39 ] && \ + [ "`echo $E2VER | grep cfs`" ]; then + sh lfscktest.sh + else + e2fsck -V + echo "e2fsck does not support lfsck, skipping" + fi + else + echo "remote OST, skipping test" + fi fi if [ "$LIBLUSTRE" != "no" ]; then -- 1.8.3.1