14 new_fs ext2 /tmp/ost 10000
17 new_fs ${MDSFS} /tmp/mds 10000
20 echo 0xffffffff > /proc/sys/portals/debug
38 mount -t lustre_light -o device=3 none /mnt/obd
41 echo $1 > /proc/sys/lustre/fail_loc
46 echo "Cleaning up and restarting MDS"
54 echo 0 > /proc/sys/lustre/fail_loc
60 mount -t lustre_light -o device=3 none /mnt/obd
68 # OBD_FAIL_MDS_REINT_SETATTR_WRITE - MDS will discard data from setattr
69 test_fail 0x10a chmod 000 /mnt/obd/foo
72 # OBD_FAIL_MDS_REINT_CREATE_WRITE - MDS will not create the file
73 test_fail 0x10c touch /mnt/obd/bar
76 # OBD_FAIL_MDS_REINT_UNLINK_WRITE - MDS will discard data from unlink
77 test_fail 0x10e rm /mnt/obd/foo
80 # OBD_FAIL_MDS_REINT_RENAME_WRITE - MDS will discard data from rename
81 test_fail 0x112 mv /mnt/obd/foo /mnt/obd/bar