1test_description="ext4 with bigalloc" 2if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then 3 echo "$test_name: $test_description: skipped (no debugfs/resize2fs)" 4 return 0 5fi 6 7FEATURES="-t ext4 -O bigalloc" 8SIZE_1=512M 9SIZE_2=2T 10LOG=$test_name.log 11E2FSCK=../e2fsck/e2fsck 12RESIZE2FS_OPTS=-f 13 14if [ $(uname -s) = "FreeBSD" ]; then 15 # creates a 2TB filesystem 16 echo "$test_name: $DESCRIPTION: skipped for FreeBSD" 17 return 0 18fi 19 20. $cmd_dir/scripts/resize_test 21 22resize_test 23RC=$? 24if [ $RC -eq 0 ]; then 25 echo "$test_name: $test_description: ok" 26 touch $test_name.ok 27elif [ $RC -eq 111 ]; then 28 echo "$test_name: $test_description: skipped (no large sparse files)" 29 touch $test_name.ok 30else 31 echo "$test_name: $test_description: failed" 32 ln $LOG $test_name.failed 33fi 34 35unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK 36