]>
Commit | Line | Data |
---|---|---|
d9c60e04 AD |
1 | FSCK_OPT=-yf |
2 | ||
d9c60e04 | 3 | echo "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 |
5 | status=$? |
6 | if [ "$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 |
10 | fi | |
11 | ||
12 | # create a corrupted image | |
13 | echo "modify the mmp sequence ..." >> $test_name.log | |
14 | $DEBUGFS -w -R "set_mmp_value magic 0x12345678" $TMPFILE >> $test_name.log 2>&1 | |
15 | ||
16 | SKIP_GUNZIP=true | |
17 | . $cmd_dir/run_e2fsck |