From: komaln Date: Thu, 22 Nov 2007 11:45:25 +0000 (+0000) Subject: b=11230 X-Git-Tag: v1_7_0_51~472 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9b1eedfe39aea5808a14092aa41365d7bd3b3cf2;p=fs%2Flustre-release.git b=11230 r=Adilger add a test in conf-sanity.sh to verify if set tunables works for symlink device --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index e18eb3a..2a8d2fb 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -1395,7 +1395,33 @@ test_36() { # 12743 } run_test 36 "df report consistency on OSTs with different block size" -umount_client $MOUNT +test_37() { + LOCAL_MDSDEV="$TMP/mdt.img" + SYM_MDSDEV="$TMP/sym_mdt.img" + + echo "MDS : $LOCAL_MDSDEV" + echo "SYMLINK : $SYM_MDSDEV" + rm -f $LOCAL_MDSDEV + + touch $LOCAL_MDSDEV + mkfs.lustre --reformat --fsname=lustre --mdt --mgs --device-size=9000 $LOCAL_MDSDEV || + error "mkfs.lustre $LOCAL_MDSDEV failed" + ln -s $LOCAL_MDSDEV $SYM_MDSDEV + + echo "mount symlink device - $SYM_MDSDEV" + + mount_op=`mount -v -t lustre -o loop $SYM_MDSDEV ${MOUNT%/*}/mds 2>&1 | grep "unable to set tunable"` + umount -d ${MOUNT%/*}/mds + rm -f $LOCAL_MDSDEV $SYM_MDSDEV + + if [ -n "$mount_op" ]; then + error "**** FAIL: set tunables failed for symlink device" + fi + return 0 +} +run_test 37 "verify set tunables works for symlink device" + +umount_client $MOUNT cleanup_nocli cleanup_krb5_env