3 [ -f "$TMPFILE" ] && rm -f $TMPFILE
7 stat -f $TMPFILE | grep -q "Type: tmpfs"
10 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
14 echo "make the test image ..." > $test_name.log
15 $MKE2FS -q -F -o Linux -b 4096 -O mmp -E mmp_update_interval=1 $TMPFILE 100 >> $test_name.log 2>&1
17 if [ "$status" != 0 ] ; then
18 echo "mke2fs -O mmp failed" > $test_name.failed
19 echo "$test_name: $test_description: failed"
23 # create a corrupted image
24 echo "modify the mmp sequence ..." >> $test_name.log
25 $DEBUGFS -w -R "set_mmp_value magic 0x12345678" $TMPFILE >> $test_name.log 2>&1