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
14os=$(uname -s)
15if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
16	# creates a 2TB filesystem
17	echo "$test_name: $test_description: skipped for $os"
18	return 0
19fi
20
21. $cmd_dir/scripts/resize_test
22
23resize_test
24RC=$?
25if [ $RC -eq 0 ]; then
26	echo "$test_name: $test_description: ok"
27	touch $test_name.ok
28elif [ $RC -eq 111 ]; then
29	echo "$test_name: $test_description: skipped (no large sparse files)"
30	touch $test_name.ok
31else
32	echo "$test_name: $test_description: failed"
33	ln $LOG $test_name.failed
34fi
35
36unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK
37