Whamcloud - gitweb
- name switch: "light" --> "lite"
[fs/lustre-release.git] / lustre / tests / runfailure-mds
index 62e07c5..ce7a6e5 100755 (executable)
@@ -35,7 +35,7 @@ setup -1
 quit
 EOF
 
-MOUNT='mount -t lustre_light -o device=3 none /mnt/obd'
+MOUNT='mount -t lustre_lite -o device=3 none /mnt/lustre'
 $MOUNT
 
 test_fail() {
@@ -45,7 +45,7 @@ test_fail() {
        $* 
 
        echo "Cleaning up and restarting MDS"
-       umount /mnt/obd
+       umount /mnt/lustre
        $OBDCTL <<- EOF
        device 0
        cleanup
@@ -66,29 +66,29 @@ test_fail() {
 
 #set -vx
 
-touch /mnt/obd/foo
-chmod a+x /mnt/obd/foo
+touch /mnt/lusre/foo
+chmod a+x /mnt/lustre/foo
 sync
 
 # OBD_FAIL_MDS_REINT_SETATTR_WRITE - MDS will discard data from setattr
-test_fail 0x10a chmod 000 /mnt/obd/foo
-ls -l /mnt/obd/foo
-[ ! -x /mnt/obd/foo ] && echo "/mnt/obd/foo is not executable!" 1>&2 && exit -1
+test_fail 0x10a chmod 000 /mnt/lustre/foo
+ls -l /mnt/lustre/foo
+[ ! -x /mnt/lustre/foo ] && echo "/mnt/lustre/foo is not executable!" 1>&2 && exit -1
 
 # OBD_FAIL_MDS_REINT_CREATE_WRITE - MDS will not create the file
-test_fail 0x10c touch /mnt/obd/bar
-ls /mnt/obd/bar
-[ $? -eq 0 ] && echo "/mnt/obd/bar was created!" 1>&2 && exit -1
+test_fail 0x10c touch /mnt/lustre/bar
+ls /mnt/lustre/bar
+[ $? -eq 0 ] && echo "/mnt/lustre/bar was created!" 1>&2 && exit -1
 
 # OBD_FAIL_MDS_REINT_UNLINK_WRITE - MDS will discard data from unlink
-test_fail 0x10e rm /mnt/obd/foo
-ls /mnt/obd/foo
-[ $? -eq 1 ] && echo "/mnt/obd/foo has been removed!" 1>&2 && exit -1
+test_fail 0x10e rm /mnt/lustre/foo
+ls /mnt/lustre/foo
+[ $? -eq 1 ] && echo "/mnt/lustre/foo has been removed!" 1>&2 && exit -1
 
 # OBD_FAIL_MDS_REINT_RENAME_WRITE - MDS will discard data from rename
-test_fail 0x112 mv /mnt/obd/foo /mnt/obd/bar
-ls /mnt/obd/foo /mnt/obd/bar
-[ ! -f /mnt/obd/foo -o -f /mnt/obd/bar ] && \
-       echo "/mnt/obd/foo has been renamed to bar!" 1>&2 && exit -1
+test_fail 0x112 mv /mnt/lustre/foo /mnt/lustre/bar
+ls /mnt/lustre/foo /mnt/lustre/bar
+[ ! -f /mnt/lustre/foo -o -f /mnt/lustre/bar ] && \
+       echo "/mnt/lustre/foo has been renamed to bar!" 1>&2 && exit -1
 
 echo "Done."