+
+ if [ "$SANITYN" != "no" ]; then
+ title sanityN
+ $DEBUG_OFF
+
+ mkdir -p $MOUNT2
+ mount_client $MOUNT2
+ #echo "can't mount2 for '$NAME', skipping sanityN.sh"
+ SANITYLOG=$TMP/sanity.log START=: CLEAN=: sh sanityN.sh
+ umount $MOUNT2
+
+ $DEBUG_ON
+ $CLEANUP
+ $SETUP
+ fi
+
+ if [ "$LFSCK" != "no" -a -x /usr/sbin/lfsck ]; then
+ title lfsck
+ E2VER=`e2fsck -V 2>&1 | head -n 1 | cut -d' ' -f 2`
+ 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
+ title liblustre
+ assert_env MGSNID MOUNT2
+ $CLEANUP
+ unload_modules
+ # Liblustre needs accept=all, noacl
+ LNETOPTS="accept=all" MDS_MOUNT_OPTS="${MDS_MOUNT_OPTS},noacl" $SETUP
+ export LIBLUSTRE_MOUNT_POINT=$MOUNT2
+ export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME
+ export LIBLUSTRE_TIMEOUT=`cat /proc/sys/lustre/timeout`
+ #export LIBLUSTRE_DEBUG_MASK=`cat /proc/sys/lnet/debug`
+ if [ -x $LIBLUSTRETESTS/sanity ]; then
+ mkdir -p $MOUNT2
+ $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET
+ fi
+ $CLEANUP
+ #$SETUP
+ fi
+
+ $CLEANUP