1*6a54128fSAndroid Build Coastguard WorkerFSCK_OPT=-yf 2*6a54128fSAndroid Build Coastguard Worker 3*6a54128fSAndroid Build Coastguard Workerecho "make the test image ..." > $test_name.log 4*6a54128fSAndroid Build Coastguard Worker$MKE2FS -q -F -o Linux -b 4096 -O mmp -E mmp_update_interval=1 $TMPFILE 100 >> $test_name.log 2>&1 5*6a54128fSAndroid Build Coastguard Workerstatus=$? 6*6a54128fSAndroid Build Coastguard Workerif [ "$status" != 0 ] ; then 7*6a54128fSAndroid Build Coastguard Worker echo "mke2fs -O mmp failed" > $test_name.failed 8*6a54128fSAndroid Build Coastguard Worker echo "$test_name: $test_description: failed" 9*6a54128fSAndroid Build Coastguard Worker return $status 10*6a54128fSAndroid Build Coastguard Workerfi 11*6a54128fSAndroid Build Coastguard Worker 12*6a54128fSAndroid Build Coastguard Worker# create a corrupted image 13*6a54128fSAndroid Build Coastguard Workerecho "modify the mmp sequence ..." >> $test_name.log 14*6a54128fSAndroid Build Coastguard Worker$DEBUGFS -w -R "set_mmp_value magic 0x12345678" $TMPFILE >> $test_name.log 2>&1 15*6a54128fSAndroid Build Coastguard Worker 16*6a54128fSAndroid Build Coastguard WorkerSKIP_GUNZIP=true 17*6a54128fSAndroid Build Coastguard Worker. $cmd_dir/run_e2fsck 18