Theodore Ts'o | 906a1cf | 2011-09-03 10:04:37 -0400 | [diff] [blame] | 1 | if test -x $DEBUGFS_EXE; then |
| 2 | |
Theodore Ts'o | 1cca86f | 2003-09-01 09:28:18 -0400 | [diff] [blame] | 3 | if [ "$FS_SIZE"x = x ]; then |
| 4 | FS_SIZE=1024 |
| 5 | fi |
| 6 | OUT1=$test_name.1.log |
| 7 | OUT2=$test_name.2.log |
| 8 | SKIP_GUNZIP=true |
| 9 | ONE_PASS_ONLY=true |
| 10 | MKE2FS_SKIP_PROGRESS=true |
| 11 | MKE2FS_SKIP_CHECK_MSG=true |
| 12 | export MKE2FS_SKIP_PROGRESS MKE2FS_SKIP_CHECK_MSG |
| 13 | > $TMPFILE |
Andreas Dilger | f9fd342 | 2013-06-15 18:44:09 -0400 | [diff] [blame] | 14 | PREP_CMD='$MKE2FS -F -o Linux $MKE2FS_OPTS $TMPFILE $FS_SIZE 2>&1 | |
| 15 | sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" > $OUT1; |
| 16 | $DEBUGFS -R features $TMPFILE 2>&1 | |
| 17 | sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT1' |
| 18 | AFTER_CMD='$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT1' |
Theodore Ts'o | 1cca86f | 2003-09-01 09:28:18 -0400 | [diff] [blame] | 19 | . $cmd_dir/run_e2fsck |
Theodore Ts'o | 906a1cf | 2011-09-03 10:04:37 -0400 | [diff] [blame] | 20 | |
| 21 | else #if test -x $DEBUGFS_EXE; then |
| 22 | rm -f $test_name.ok $test_name.failed |
| 23 | echo "skipped" |
| 24 | fi |
| 25 | |
| 26 | unset DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS \ |
| 27 | MKE2FS_DEVICE_SECTSIZE |