3 # use current directory instead of /tmp becase tmpfs doesn't support DIO
5 TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX)
7 stat -f $TMPFILE | grep -q "Type: tmpfs"
10 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
14 $MKE2FS -q -F -o Linux -b 4096 -O mmp $TMPFILE 100 > $test_name.log 2>&1
16 if [ "$status" != 0 ] ; then
17 echo "mke2fs -O mmp failed" > $test_name.failed
18 echo "$test_name: $test_description: failed"
22 $TUNE2FS -O ^mmp $TMPFILE > $test_name.log 2>&1
24 if [ "$status" != 0 ] ; then
25 echo "tune2fs -O ^mmp failed" > $test_name.failed
26 echo "$test_name: $test_description: failed"
30 $FSCK $FSCK_OPT $TMPFILE > $test_name.log 2>&1
32 if [ "$status" = 0 ] ; then
33 echo "$test_name: $test_description: ok"
36 echo "e2fsck after MMP disable failed" > $test_name.failed
37 echo "$test_name: $test_description: failed"