For all the tests which require that quotas be disabled, remove the
quota mount options before mounting the scratch filesystem.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
_require_xfs_quota_foreign
_require_xfs_io_command "chproj"
-# we can't run with group quotas
-_exclude_scratch_mount_option "gquota" "grpquota"
+# we can't run with group quotas (on v4 xfs); the mount options for group
+# quotas will be filtered out by _qmount_option below.
dir=$SCRATCH_MNT/project
. ./common/rc
. ./common/filter
. ./common/repair
+. ./common/quota
# nuke the superblock, AGI, AGF, AGFL; then try repair the damage
#
then
_notrun "SCRATCH_DEV too small, results would be non-deterministic"
else
+ _qmount_option noquota
_scratch_mount
src/feature -U $SCRATCH_DEV && \
_notrun "UQuota are enabled, test needs controlled sb recovery"
. ./common/rc
. ./common/filter
. ./common/repair
+. ./common/quota
# nuke the root, rt bitmap, and rt summary inodes
#
sed -e 's/ //g' -e 's/^/export /'`
# check we won't get any quota inodes setup on mount
+_qmount_option noquota
_scratch_mount
src/feature -U $SCRATCH_DEV && \
_notrun "UQuota are enabled, test needs controlled sb recovery"
. ./common/rc
. ./common/filter
. ./common/dump
+. ./common/quota
#
# list recursively the directory
# so don't run it
#
_scratch_mkfs_xfs >> $seqres.full
+_qmount_option noquota
_scratch_mount
$here/src/feature -U $SCRATCH_DEV && \
_notrun "UQuota enabled, test needs controlled xfsdump output"