diff mbox series

xfs/153: add _require_idmapped_mounts check

Message ID 1619775081-3941-1-git-send-email-huangjh.jy@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show
Series xfs/153: add _require_idmapped_mounts check | expand

Commit Message

Jinhui Huang April 30, 2021, 9:31 a.m. UTC
When this case runs on system without mount_setattr syscall support, it
will report errors rather than skip. so we add _require_idmapped_mounts
to check if mount_setattr syscall is supported.

Signed-off-by: Jinhui Huang <huangjh.jy@cn.fujitsu.com>
---
 tests/xfs/153 | 1 +
 1 file changed, 1 insertion(+)

Comments

Darrick J. Wong April 30, 2021, 3:39 p.m. UTC | #1
On Fri, Apr 30, 2021 at 05:31:21PM +0800, Jinhui Huang wrote:
> When this case runs on system without mount_setattr syscall support, it
> will report errors rather than skip. so we add _require_idmapped_mounts
> to check if mount_setattr syscall is supported.
> 
> Signed-off-by: Jinhui Huang <huangjh.jy@cn.fujitsu.com>

Seems pretty straightforward...

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  tests/xfs/153 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/xfs/153 b/tests/xfs/153
> index ab2469d..19cfc46 100755
> --- a/tests/xfs/153
> +++ b/tests/xfs/153
> @@ -39,6 +39,7 @@ chmod a+rwx $seqres.full	# arbitrary users will write here
>  _require_scratch
>  _require_xfs_quota
>  _require_user fsgqa
> +_require_idmapped_mounts
>  _require_test_program "idmapped-mounts/mount-idmapped"
>  
>  _scratch_mkfs >/dev/null 2>&1
> -- 
> 1.8.3.1
>
diff mbox series

Patch

diff --git a/tests/xfs/153 b/tests/xfs/153
index ab2469d..19cfc46 100755
--- a/tests/xfs/153
+++ b/tests/xfs/153
@@ -39,6 +39,7 @@  chmod a+rwx $seqres.full	# arbitrary users will write here
 _require_scratch
 _require_xfs_quota
 _require_user fsgqa
+_require_idmapped_mounts
 _require_test_program "idmapped-mounts/mount-idmapped"
 
 _scratch_mkfs >/dev/null 2>&1