6 stat -f $TMPFILE | grep -q "Type: tmpfs"
9 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
13 $MKE2FS -q -F -o Linux -b 4096 $TMPFILE 100 > $test_name.log 2>&1
15 if [ "$status" != 0 ] ; then
16 echo "mke2fs failed" > $test_name.failed
17 echo "$test_name: $test_description: failed"
21 $TUNE2FS -O mmp -E mmp_update_interval=1 $TMPFILE >> $test_name.log 2>&1
23 if [ "$status" != 0 ] ; then
24 echo "tune2fs -O mmp failed with $status" > $test_name.failed
25 echo "$test_name: $test_description: failed"
29 $FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
31 if [ "$status" = 0 ] ; then
32 echo "$test_name: $test_description: ok"
35 echo "e2fsck with MMP enabled failed with $status" > $test_name.failed
36 echo "$test_name: $test_description: failed"