On XFS, the _require_prjquota helper takes a path to a block device,
but (unintuitively) requires the block device to be mounted for the
detection to work properly. Fix the detection code in generic/506.
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>
}
#
-# checks that the project quota support in the kernel is enabled.
+# Checks that the project quota support in the kernel is enabled.
+# The device must be mounted for detection to work properly.
#
_require_prjquota()
{
_scratch_mkfs >/dev/null 2>&1
_require_metadata_journaling $SCRATCH_DEV
+_scratch_mount
_require_prjquota $SCRATCH_DEV
+_scratch_unmount
testfile=$SCRATCH_MNT/testfile