]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/xfs: helper function to check if -l/-d/-r concurrecy flags.
authorLukas Herbolt <lukas@herbolt.com>
Thu, 14 May 2026 11:39:11 +0000 (13:39 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 15 May 2026 16:20:23 +0000 (00:20 +0800)
Check if the requested flag is supported by the mkfs.xfs on scratch
device.

Signed-off-by: Lukas Herbolt <lukas@herbolt.com>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/xfs

index d76a14749b62027f2be6991258a34570c6bfa346..4b3a7f7d1532820870039146527a21ea64a1fd7b 100644 (file)
@@ -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
+}