Home | History | Annotate | Download | only in t_quota_2off
      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 -b 4096 -O quota $TMPFILE 100 > $test_name.log 2>&1
      9 status=$?
     10 if [ "$status" != 0 ] ; then
     11 	echo "mke2fs -O quota failed" > $test_name.failed
     12 	echo "$test_name: $test_description: failed"
     13 	return $status
     14 fi
     15 
     16 $TUNE2FS -O ^quota $TMPFILE >> $test_name.log 2>&1
     17 status=$?
     18 if [ "$status" != 0 ] ; then
     19 	echo "tune2fs -O ^quota 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 quota enabled failed with $status" > $test_name.failed
     31 	echo "$test_name: $test_description: failed"
     32 	return $status
     33 fi
     34 
     35 rm -f $TMPFILE
     36