1 if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
11 features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize,sparse_super,filetype,dir_index,ext_attr,meta_bg,^resize_inode,64bit
17 hugefiles_name = aaaaa
20 zero_hugefiles = false
24 echo "resize2fs test" > $OUT
26 MKE2FS_CONFIG=$CONF $MKE2FS -F -T ext4h $TMPFILE 524288 >> $OUT 2>&1
30 ($DUMPE2FS -h $TMPFILE; $DUMPE2FS -g $TMPFILE) 2> /dev/null | sed -f $cmd_dir/filter.sed > $OUT.before
31 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1
33 echo Exit status is $status >> $OUT
36 echo "resize2fs test.img -s" >> $OUT
37 $RESIZE2FS -s -f $TMPFILE 2>&1 >> $OUT 2>&1
39 echo Exit status is $status >> $OUT
42 ($DUMPE2FS -h $TMPFILE; $DUMPE2FS -g $TMPFILE) 2> /dev/null | sed -f $cmd_dir/filter.sed > $OUT.after
43 echo "Change in FS metadata:" >> $OUT
44 diff -u $OUT.before $OUT.after | tail -n +3 >> $OUT
45 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1
47 echo Exit status is $status >> $OUT
55 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" -e 's/test_filesys:.*//g' < $OUT > $OUT.new
61 if [ "$status" = 0 ] ; then
62 echo "$test_name: $test_description: ok"
65 echo "$test_name: $test_description: failed"
66 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
69 rm $OUT.before $OUT.after
71 unset IMAGE FSCK_OPT OUT EXP CONF
73 else #if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
74 echo "$test_name: $test_description: skipped"