1 # use current directory instead of /tmp becase tmpfs doesn't support DIO
3 TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX)
5 stat -f $TMPFILE | grep -q "Type: tmpfs"
8 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
12 $MKE2FS -q -F -o Linux -b 4096 -O mmp -E mmp_update_interval=1 $TMPFILE 100 >> $test_name.log 2>&1
14 if [ "$status" != 0 ] ; then
15 echo "mke2fs -O mmp failed" > $test_name.failed
16 echo "$test_name: $test_description: failed"
20 if test -x $E2IMAGE_EXE; then
26 PREP_CMD="$E2IMAGE_EXE -r $TMPFILE $TMPFILE.raw 2>/dev/null; \
27 mv $TMPFILE.raw $TMPFILE"
32 echo "$test_name: $test_description: skipped"