mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user