• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
2
3test_description="ext4 with bigalloc"
4FEATURES="-t ext4 -O bigalloc"
5SIZE_1=512M
6SIZE_2=2T
7LOG=$test_name.log
8E2FSCK=../e2fsck/e2fsck
9RESIZE2FS_OPTS=-f
10
11if [ $(uname -s) = "FreeBSD" ]; then
12	# creates a 2TB filesystem
13	echo "$test_name: $DESCRIPTION: skipped for FreeBSD"
14	return 0
15fi
16
17. $cmd_dir/scripts/resize_test
18
19resize_test
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"
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
34else #if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
35	echo "$test_name: $test_description: skipped"
36fi
37
38