]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - tests/f_mmp_garbage/script
libext2fs: don't use O_DIRECT for files on tmpfs
[thirdparty/e2fsprogs.git] / tests / f_mmp_garbage / script
CommitLineData
d9c60e04
AD
1FSCK_OPT=-yf
2
d9c60e04 3echo "make the test image ..." > $test_name.log
6d268879 4$MKE2FS -q -F -o Linux -b 4096 -O mmp -E mmp_update_interval=1 $TMPFILE 100 >> $test_name.log 2>&1
d9c60e04
AD
5status=$?
6if [ "$status" != 0 ] ; then
7 echo "mke2fs -O mmp failed" > $test_name.failed
f3331df6 8 echo "$test_name: $test_description: failed"
d9c60e04
AD
9 return $status
10fi
11
12# create a corrupted image
13echo "modify the mmp sequence ..." >> $test_name.log
14$DEBUGFS -w -R "set_mmp_value magic 0x12345678" $TMPFILE >> $test_name.log 2>&1
15
16SKIP_GUNZIP=true
17. $cmd_dir/run_e2fsck