1 test_description="change uuid on a metadata-csum"
3 trap "rm -f $TMPFILE $TMPFILE.conf" EXIT INT QUIT
4 dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
9 # Test command line option
10 echo "create fs with metadata_csum" >> $OUT
11 $MKE2FS -o Linux -O metadata_csum,^metadata_csum_seed -U 6b33f586-a183-4383-921d-30da3fef2e5c -F $TMPFILE > /dev/null 2>&1
12 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
14 echo "change UUID" >> $OUT
15 $TUNE2FS -U a61be2e0-b3b8-4fbc-b2cd-d84b306b9731 $TMPFILE > /dev/null 2>&1
16 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
18 echo "check filesystem" >> $OUT
19 $FSCK $FSCK_OPT -fy $TMPFILE > /dev/null 2>&1
20 echo "fsck returns $?" >> $OUT
21 $DUMPE2FS $TMPFILE 2>&1 | egrep '(Checksum seed:|UUID)' >> $OUT
26 if [ "$status" = 0 ] ; then
27 echo "$test_name: $test_description: ok"
30 echo "$test_name: $test_description: failed"
31 diff $DIFF_OPTS $EXP $OUT > $test_name.failed