From: Lukas Herbolt Date: Thu, 14 May 2026 11:39:11 +0000 (+0200) Subject: common/xfs: helper function to check if -l/-d/-r concurrecy flags. X-Git-Tag: v2026.05.17~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f162f5bcf50fc32c7e3b432e7ff189571a3151f;p=xfstests-dev.git common/xfs: helper function to check if -l/-d/-r concurrecy flags. Check if the requested flag is supported by the mkfs.xfs on scratch device. Signed-off-by: Lukas Herbolt Reviewed-by: Zorro Lang Reviewed-by: "Darrick J. Wong" Signed-off-by: Zorro Lang --- diff --git a/common/xfs b/common/xfs index d76a1474..4b3a7f7d 100644 --- a/common/xfs +++ b/common/xfs @@ -2427,3 +2427,12 @@ _require_xfs_healer() _xfs_healer --supported "$@" &>/dev/null || \ _notrun "health monitoring not supported on this kernel" } + +# -l/-d concurrency came in same xfsprogs release v6.7 + _scratch_mkfs_xfs_supports_concurrency() +{ + local arg="${1:-d}" + + test "$arg" = "-l" && arg="-d" + _scratch_mkfs_xfs_supported "$arg" concurrency=0 +}