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>
_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
+}