QA test updates - fixes for pquota, extsize, fsstress, and ensure mount options passed through to test_dev.

Merge of master-melb:xfs-cmds:24763a by kenmcd.
This commit is contained in:
Nathan Scott
2005-12-09 02:52:22 +00:00
parent 6449a993f2
commit de6d86177f
36 changed files with 297 additions and 231 deletions
+10 -3
View File
@@ -58,14 +58,14 @@ inohard=10
# and iosize. What we want to test is that the limit is enforced
# (ie. blksize less than limit but not unduly less - ~85% is kind)
# nowadays we actually get much closer to the limit before EDQUOT.
#
#
_filter_and_check_blocks()
{
perl -npe '
if (/^'$name'\s+([-|+]){2}\s+(\d+)/ && '$enforce') {
$maximum = '$blkhard';
$minimum = '$blkhard' * 85/100;
if ($2 < $minimum || $2 > $maximum) {
if (($2 < $minimum || $2 > $maximum) && '$noextsz') {
printf(" URK - %d is out of range! [%d,%d] \n",
$2, $minimum, $maximum);
}
@@ -89,6 +89,14 @@ else
QUOTA_FS=$SCRATCH_MNT
fi
# Figure out whether we're doing large allocations
# (bail out if they're so large they stuff the test up)
_test_inode_flag extsz-inherit $SCRATCH_MNT
noextsz=$?
extsize=`_test_inode_extsz $SCRATCH_MNT`
[ $extsize -ge 512000 ] && \
_notrun "Extent size hint is too large ($extsize bytes)"
_qsetup
echo "Using output from '" `ls -l $seq.out` "'" >>$seq.full
@@ -138,7 +146,6 @@ ls -l $SCRATCH_MNT >>$seq.full
_qmount
_repquota -$type $QUOTA_FS | _filter_and_check_blocks
# success, all done
status=0
exit