generic/38[3-6] are made generic from xfs tests to test project
quota on other filesystems, e.g. ext4. But we should make sure
project quota is enabled in between of _scratch_enable_pquota and
_qmount. Otherwise mount will fail if there's no project quota
support on SCRATCH_DEV, e.g. ext2 and ext3.
Reviewed-by: Dave Chinner <dchinner@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}"