Whamcloud - gitweb
101aafba0e9128fe3b7e930d051216652dfaaaa6
[tools/e2fsprogs.git] / tests / r_bigalloc_big_expand / script
1 test_description="ext4 with bigalloc"
2 if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then
3         echo "$test_name: $test_description: skipped (no debugfs/resize2fs)"
4         return 0
5 fi
6
7 FEATURES="-t ext4 -O bigalloc"
8 SIZE_1=512M
9 SIZE_2=2T
10 LOG=$test_name.log
11 E2FSCK=../e2fsck/e2fsck
12 RESIZE2FS_OPTS=-f
13
14 os=$(uname -s)
15 if [ "$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
19 fi
20
21 . $cmd_dir/scripts/resize_test
22
23 resize_test
24 RC=$?
25 if [ $RC -eq 0 ]; then
26         echo "$test_name: $test_description: ok"
27         touch $test_name.ok
28 elif [ $RC -eq 111 ]; then
29         echo "$test_name: $test_description: skipped (no large sparse files)"
30         touch $test_name.ok
31 else
32         echo "$test_name: $test_description: failed"
33         ln $LOG $test_name.failed
34 fi
35
36 unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK