]>
Commit | Line | Data |
---|---|---|
d9c60e04 AD |
1 | FSCK_OPT=-yf |
2 | ||
6d268879 | 3 | $MKE2FS -q -F -o Linux -b 4096 -O mmp $TMPFILE 100 > $test_name.log 2>&1 |
d9c60e04 AD |
4 | status=$? |
5 | if [ "$status" != 0 ] ; then | |
6 | echo "mke2fs -O mmp failed" > $test_name.failed | |
f3331df6 | 7 | echo "$test_name: $test_description: failed" |
d9c60e04 AD |
8 | return $status |
9 | fi | |
10 | ||
11 | $TUNE2FS -O ^mmp $TMPFILE > $test_name.log 2>&1 | |
12 | status=$? | |
13 | if [ "$status" != 0 ] ; then | |
14 | echo "tune2fs -O ^mmp failed" > $test_name.failed | |
f3331df6 | 15 | echo "$test_name: $test_description: failed" |
d9c60e04 AD |
16 | return $status |
17 | fi | |
18 | ||
19 | $FSCK $FSCK_OPT $TMPFILE > $test_name.log 2>&1 | |
20 | status=$? | |
21 | if [ "$status" = 0 ] ; then | |
f3331df6 | 22 | echo "$test_name: $test_description: ok" |
d9c60e04 AD |
23 | touch $test_name.ok |
24 | else | |
25 | echo "e2fsck after MMP disable failed" > $test_name.failed | |
f3331df6 | 26 | echo "$test_name: $test_description: failed" |
d9c60e04 AD |
27 | return $status |
28 | fi | |
29 | rm -f $TMPFILE |