Whamcloud - gitweb
debugfs.8: fix typo
[tools/e2fsprogs.git] / tests / t_project_4off / script
1 FSCK_OPT=-yf
2
3 if [ "$QUOTA" != "y" ]; then
4         echo "$test_name: $test_description: skipped"
5         return 0
6 fi
7
8 $MKE2FS -q -F -o Linux -I 256 -b 4096 -O quota,project $TMPFILE 100 > $test_name.log 2>&1
9 status=$?
10 if [ "$status" != 0 ] ; then
11         echo "mke2fs -O quota,project failed" > $test_name.failed
12         echo "$test_name: $test_description: failed"
13         return $status
14 fi
15
16 $TUNE2FS -Q ^prj $TMPFILE >> $test_name.log 2>&1
17 status=$?
18 if [ "$status" != 0 ] ; then
19         echo "tune2fs -O ^project failed" > $test_name.failed
20         echo "$test_name: $test_description: failed"
21         return $status
22 fi
23
24 $FSCK $FSCK_OPT $TMPFILE >> $test_name.log 2>&1
25 status=$?
26 if [ "$status" = 0 ] ; then
27         echo "$test_name: $test_description: ok"
28         touch $test_name.ok
29 else
30         echo "e2fsck with project enabled failed with $status" > $test_name.failed
31         echo "$test_name: $test_description: failed"
32         return $status
33 fi
34
35 rm -f $TMPFILE