1 if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
8 #gzip -d < $EXP.gz > $EXP
13 features = has_journal,extent,huge_file,uninit_bg,dir_nlink,extra_isize,sparse_super,filetype,dir_index,ext_attr,^resize_inode,^meta_bg,^flex_bg
19 hugefiles_name = aaaaa
22 zero_hugefiles = false
26 if [ $(uname -s) = "Darwin" ]; then
27 # creates a 786MB filesystem
28 echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
32 echo "resize2fs test" > $OUT
34 MKE2FS_CONFIG=$CONF $MKE2FS -F -T ext4h $TMPFILE 786432 >> $OUT 2>&1
38 $DUMPE2FS -g $TMPFILE 2>&1 >> $OUT.before 2> /dev/null
39 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1
41 echo Exit status is $status >> $OUT
44 echo "resize2fs test.img" >> $OUT
45 $DD if=/dev/zero of=$TMPFILE conv=notrunc bs=1 count=1 seek=3221225471 2> /dev/null
46 $RESIZE2FS -f $TMPFILE 2>&1 >> $OUT 2>&1
48 echo Exit status is $status >> $OUT
51 $DUMPE2FS -g $TMPFILE 2>&1 >> $OUT.after 2> /dev/null
52 echo "Change in FS metadata:" >> $OUT
53 diff -u $OUT.before $OUT.after | tail -n +3 >> $OUT
54 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1
56 echo Exit status is $status >> $OUT
64 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" -e 's/test_filesys:.*//g' < $OUT > $OUT.new
70 if [ "$status" = 0 ] ; then
71 echo "$test_name: $test_description: ok"
74 echo "$test_name: $test_description: failed"
75 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
78 rm $OUT.before $OUT.after
80 unset IMAGE FSCK_OPT OUT EXP CONF
82 else #if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
83 echo "$test_name: $test_description: skipped"