]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame_incremental - tests/t_mmp_1on/script
libext2fs: don't use O_DIRECT for files on tmpfs
[thirdparty/e2fsprogs.git] / tests / t_mmp_1on / script
... / ...
CommitLineData
1FSCK_OPT=-yf
2
3$MKE2FS -q -F -o Linux -b 4096 $TMPFILE 100 > $test_name.log 2>&1
4status=$?
5if [ "$status" != 0 ] ; then
6 echo "mke2fs failed" > $test_name.failed
7 echo "$test_name: $test_description: failed"
8 return $status
9fi
10
11$TUNE2FS -O mmp -E mmp_update_interval=1 $TMPFILE >> $test_name.log 2>&1
12status=$?
13if [ "$status" != 0 ] ; then
14 echo "tune2fs -O mmp failed with $status" > $test_name.failed
15 echo "$test_name: $test_description: failed"
16 return $status
17fi
18
19$FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
20status=$?
21if [ "$status" = 0 ] ; then
22 echo "$test_name: $test_description: ok"
23 touch $test_name.ok
24else
25 echo "e2fsck with MMP enabled failed with $status" > $test_name.failed
26 echo "$test_name: $test_description: failed"
27 return $status
28fi
29rm -f $TMPFILE