X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Flfsck.sh;h=d8b95cfed83be6df5f597f6efde899b9555d3832;hb=a4e6076ee269b54a381417fe9443ab8e9f6f80da;hp=6c8103c65e1816f8ff431a7c930af93880797649;hpb=545f947c373dc2c306a2f5f67743b95654b67a87;p=fs%2Flustre-release.git diff --git a/lustre/tests/lfsck.sh b/lustre/tests/lfsck.sh index 6c8103c..d8b95cf 100644 --- a/lustre/tests/lfsck.sh +++ b/lustre/tests/lfsck.sh @@ -20,6 +20,10 @@ OBJGRP=${OBJGRP:-0} # the OST object group [ -d "$SHARED_DIRECTORY" ] || \ { skip "SHARED_DIRECTORY should be specified with a shared directory \ which can be accessable on all of the nodes" && exit 0; } +[[ $(facet_fstype $SINGLEMDS) != ldiskfs ]] && + skip "Only applicable to ldiskfs-based MDTs" && exit 0 +[[ $(facet_fstype OST) != ldiskfs ]] && + skip "Only applicable to ldiskfs-based OST" && exit 0 which getfattr &>/dev/null || { skip_env "could not find getfattr" && exit 0; } which setfattr &>/dev/null || { skip_env "could not find setfattr" && exit 0; } @@ -34,7 +38,7 @@ check_and_setup_lustre assert_DIR -SAMPLE_FILE=$TMP/$(basename $0 .sh).junk +SAMPLE_FILE=$TMP/$TESTSUITE.junk dd if=/dev/urandom of=$SAMPLE_FILE bs=1M count=1 # Create some dirs and files on the filesystem. @@ -282,6 +286,6 @@ else fi fi -complete $(basename $0) $SECONDS +complete $SECONDS check_and_cleanup_lustre exit_status