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 |
Lukas Czerner | d2bfdc7 | 2011-09-15 23:44:59 -0400 | [diff] [blame] | 14 | PREP_CMD='$MKE2FS -F -o Linux $MKE2FS_OPTS $TMPFILE $FS_SIZE 2>&1 | sed -e 1d | grep -v "Discarding device blocks" | tr -d \\015 > $OUT1 ; $DEBUGFS -R features $TMPFILE 2>&1 | sed -e 1d | tr -d \\015 >> $OUT1 ; echo " " >> $OUT1' |
Theodore Ts'o | 4764a57 | 2007-07-22 16:36:51 -0400 | [diff] [blame] | 15 | AFTER_CMD='$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs | tr -d \\015 >> $OUT1' |
Theodore Ts'o | 1cca86f | 2003-09-01 09:28:18 -0400 | [diff] [blame] | 16 | . $cmd_dir/run_e2fsck |
Theodore Ts'o | 906a1cf | 2011-09-03 10:04:37 -0400 | [diff] [blame] | 17 | |
| 18 | else #if test -x $DEBUGFS_EXE; then |
| 19 | rm -f $test_name.ok $test_name.failed |
| 20 | echo "skipped" |
| 21 | fi |
| 22 | |
| 23 | unset DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS \ |
| 24 | MKE2FS_DEVICE_SECTSIZE |