blob: f5249968bfc7ad77569573440b89570c8962c6fb [file] [log] [blame]
Theodore Ts'o906a1cf2011-09-03 10:04:37 -04001if test -x $DEBUGFS_EXE; then
2
Theodore Ts'o1cca86f2003-09-01 09:28:18 -04003if [ "$FS_SIZE"x = x ]; then
4 FS_SIZE=1024
5fi
6OUT1=$test_name.1.log
7OUT2=$test_name.2.log
8SKIP_GUNZIP=true
9ONE_PASS_ONLY=true
10MKE2FS_SKIP_PROGRESS=true
11MKE2FS_SKIP_CHECK_MSG=true
12export MKE2FS_SKIP_PROGRESS MKE2FS_SKIP_CHECK_MSG
13> $TMPFILE
Lukas Czernerd2bfdc72011-09-15 23:44:59 -040014PREP_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'o4764a572007-07-22 16:36:51 -040015AFTER_CMD='$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs | tr -d \\015 >> $OUT1'
Theodore Ts'o1cca86f2003-09-01 09:28:18 -040016. $cmd_dir/run_e2fsck
Theodore Ts'o906a1cf2011-09-03 10:04:37 -040017
18else #if test -x $DEBUGFS_EXE; then
19 rm -f $test_name.ok $test_name.failed
20 echo "skipped"
21fi
22
23unset DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS \
24 MKE2FS_DEVICE_SECTSIZE