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