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