Home | History | Annotate | Download | only in r_meta_bg_shrink
      1 test_description="meta_bg shrink"
      2 if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then
      3 	echo "$test_name: $test_description: skipped (no debugfs/resize2fs)"
      4 	return 0
      5 fi
      6 
      7 FEATURES="-t ext4 -O 64bit,meta_bg,^resize_inode -b 1024"
      8 SIZE_1=1G
      9 SIZE_2=48M
     10 LOG=$test_name.log
     11 E2FSCK=../e2fsck/e2fsck
     12 RESIZE2FS_OPTS=-f
     13 
     14 . $cmd_dir/scripts/resize_test
     15 
     16 export MKE2FS_FIRST_META_BG=2
     17 resize_test
     18 unset MKE2FS_FIRST_META_BG
     19 
     20 RC=$?
     21 if [ $RC -eq 0 ]; then
     22 	echo "$test_name: $test_description: ok"
     23 	touch $test_name.ok
     24 elif [ $RC -eq 111 ]; then
     25 	echo "$test_name: $test_description: skipped (no large sparse files)"
     26 	touch $test_name.ok
     27 else
     28 	echo "$test_name: $test_description: failed"
     29 	ln $LOG $test_name.failed
     30 fi
     31 
     32 unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK
     33