]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - tests/t_mmp_2off/script
libext2fs: don't use O_DIRECT for files on tmpfs
[thirdparty/e2fsprogs.git] / tests / t_mmp_2off / script
index 572730b4eca7921ead4839adfc359b891c8a45f3..ccd859b2f41c235324097c50bc25757797481e34 100644 (file)
@@ -1,16 +1,5 @@
 FSCK_OPT=-yf
 
-[ -f "$TMPFILE" ] && rm -f $TMPFILE
-TMPFILE=$test_name.tmp
-> $TMPFILE
-
-stat -f $TMPFILE | grep -q "Type: tmpfs"
-if [ $? = 0 ]; then
-       rm -f $TMPFILE
-       echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
-       return 0
-fi
-
 $MKE2FS -q -F -o Linux -b 4096 -O mmp $TMPFILE 100 > $test_name.log 2>&1
 status=$?
 if [ "$status" != 0 ] ; then