Commit
23f60ef304d ("generic/38[3-6]: require project quota to be
enabled on SCRATCH_DEV") introduced a regression that leads
_require_projquota, which uses src/feature to call a quotactl,
operate before the filesystem is mounted, and results in tests not
run on XFS and ext4.
Revert the problematic patch first, because don't want to lose
project quota test coverage on XFS and ext4. We can fix the false
failure on ext3/2 later,
Reported-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
_scratch_mkfs >/dev/null 2>&1
_scratch_enable_pquota
-_require_prjquota $SCRATCH_DEV
do_project_test()
{
_require_scratch
_scratch_mkfs >/dev/null 2>&1
_scratch_enable_pquota
-_require_prjquota $SCRATCH_DEV
_qmount_option "prjquota"
_qmount
+_require_prjquota $SCRATCH_DEV
report_quota()
{
_scratch_mkfs >/dev/null 2>&1
_scratch_enable_pquota
-_require_prjquota $SCRATCH_DEV
_qmount_option "prjquota"
_qmount
+_require_prjquota $SCRATCH_DEV
#
# Create the project root
_scratch_mkfs >> "$seqres.full" 2>&1
_scratch_enable_pquota
-_require_prjquota $SCRATCH_DEV
_qmount_option "prjquota"
_qmount
+_require_prjquota $SCRATCH_DEV
mkdir -p "${proj_dir}"