1 if ! test -x $DEBUGFS_EXE; then
2 echo "$test_name: $test_description: skipped (no debugfs)"
8 if [ -f $test_dir/expect.gz ]; then
10 gunzip < $test_dir/expect.gz > $EXP1
15 cat > $TMPFILE.conf << ENDL
18 base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr,^has_journal,^extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize,^64bit
24 MKE2FS_CONFIG=$TMPFILE.conf $MKE2FS -F -o Linux -b 1024 -O ^bigalloc -T ext4 $TMPFILE 65536 > $OUT.new 2>&1
27 $FSCK -fy -N test_filesys $TMPFILE >> $OUT.new 2>&1
29 echo Exit status is $status >> $OUT.new
31 echo "debugfs write files" >> $OUT.new
33 # a: fallocate a 40k file
36 cat > $TMPFILE.cmd << ENDL
51 echo "stat /a" >> $TMPFILE.cmd2
52 echo "stat /b" >> $TMPFILE.cmd2
54 $DEBUGFS -w -f $TMPFILE.cmd $TMPFILE > /dev/null 2>&1
55 $DEBUGFS -f $TMPFILE.cmd2 $TMPFILE >> $OUT.new 2>&1
57 $FSCK -fy -N test_filesys $TMPFILE >> $OUT.new 2>&1
59 echo Exit status is $status >> $OUT.new
60 sed -f $cmd_dir/filter.sed -e '/^.*time:.*$/d' $OUT.new > $OUT
61 rm -f $TMPFILE $TMPFILE.cmd $TMPFILE.cmd2 $OUT.new
66 if [ "$status" = 0 ] ; then
67 echo "$test_name: $test_description: ok"
70 echo "$test_name: $test_description: failed"
71 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
75 unset IMAGE FSCK_OPT OUT EXP