From 90041be5316257fc98eb62af1e8a927e53d2d612 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 29 Apr 2025 17:05:41 +0200 Subject: file-posix: Define DM_MPATH_PROBE_PATHS RH-Author: Kevin Wolf RH-MergeRequest: 370: file-posix: Fix multipath failover with SCSI passthrough RH-Jira: RHEL-65852 RH-Acked-by: Hanna Czenczek RH-Acked-by: Stefan Hajnoczi RH-Commit: [1/2] 6680f4a3f15a768b1ca51aafea452c3d0886f12e (kmwolf/centos-qemu-kvm) While the kernel side isn't merged yet and we're still using old kernel headers, just define DM_MPATH_PROBE_PATHS manually. This is a downstream-only patch that can be removed after the next minor release. Signed-off-by: Kevin Wolf Patch-name: kvm-file-posix-Define-DM_MPATH_PROBE_PATHS.patch Patch-id: 41 Patch-present-in-specfile: True --- block/file-posix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/block/file-posix.c b/block/file-posix.c index 8c738674ce..cb2e94d7db 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -156,6 +156,11 @@ */ #define SG_IO_MAX_RETRIES 8 +/* TODO Remove this when the kernel side is merged */ +#if !defined(DM_MPATH_PROBE_PATHS) && defined(DM_GET_TARGET_VERSION) +#define DM_MPATH_PROBE_PATHS _IO(DM_IOCTL, DM_GET_TARGET_VERSION_CMD + 1) +#endif + typedef struct BDRVRawState { int fd; bool use_lock; -- 2.39.3