blob: 82eca41aee0bfd9acfec027eb98abd5d42905a9a [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
Andreas Dilgerf9fd3422013-06-15 18:44:09 -040014PREP_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'
18AFTER_CMD='$DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT1'
Theodore Ts'o1cca86f2003-09-01 09:28:18 -040019. $cmd_dir/run_e2fsck
Theodore Ts'o906a1cf2011-09-03 10:04:37 -040020
21else #if test -x $DEBUGFS_EXE; then
22 rm -f $test_name.ok $test_name.failed
23 echo "skipped"
24fi
25
26unset DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS \
27 MKE2FS_DEVICE_SECTSIZE