1test_description="meta_bg shrink"
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 64bit,meta_bg,^resize_inode -b 1024"
8SIZE_1=1G
9SIZE_2=48M
10LOG=$test_name.log
11E2FSCK=../e2fsck/e2fsck
12RESIZE2FS_OPTS=-f
13
14. $cmd_dir/scripts/resize_test
15
16export MKE2FS_FIRST_META_BG=2
17resize_test
18unset MKE2FS_FIRST_META_BG
19
20RC=$?
21if [ $RC -eq 0 ]; then
22	echo "$test_name: $test_description: ok"
23	touch $test_name.ok
24elif [ $RC -eq 111 ]; then
25	echo "$test_name: $test_description: skipped (no large sparse files)"
26	touch $test_name.ok
27else
28	echo "$test_name: $test_description: failed"
29	ln $LOG $test_name.failed
30fi
31
32unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK
33