xref: /aosp_15_r20/external/e2fsprogs/tests/f_mmp_garbage/script (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1FSCK_OPT=-yf
2
3echo "make the test image ..." > $test_name.log
4$MKE2FS -q -F -o Linux -b 4096 -O mmp -E mmp_update_interval=1 $TMPFILE 100 >> $test_name.log 2>&1
5status=$?
6if [ "$status" != 0 ] ; then
7	echo "mke2fs -O mmp failed" > $test_name.failed
8	echo "$test_name: $test_description: failed"
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
18