generic/506: call _require_quota before _qmount
authorZorro Lang <zlang@kernel.org>
Sun, 29 May 2022 09:03:36 +0000 (17:03 +0800)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Jun 2022 05:05:03 +0000 (13:05 +0800)
The g/506 fails on some filesystems (e.g. overlay) which doesn't
support prjquota:

  MOUNT_OPTIONS =  -o prjquota
  qmount failed

To avoid this failure, call _require_quota before doing real quota
mount.

Signed-off-by: Zorro Lang <zlang@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
tests/generic/506

index 25a5b0f8c2dd12e275a4b321cc917f8ba69d9173..ec91af781c7582f97736d429a4dbb9513c8bfb2d 100755 (executable)
@@ -27,6 +27,7 @@ _begin_fstest shutdown auto quick metadata quota
 _supported_fs generic
 
 _require_scratch
+_require_quota
 _require_scratch_shutdown
 
 _scratch_mkfs >/dev/null 2>&1