Blame SOURCES/0007-vddk-Add-support-for-VDDK-8.0.0.patch

f19e3f
From e850f65053d89ad54c27280f48506da5eb631a68 Mon Sep 17 00:00:00 2001
f19e3f
From: "Richard W.M. Jones" <rjones@redhat.com>
f19e3f
Date: Fri, 18 Nov 2022 09:43:19 +0000
f19e3f
Subject: [PATCH] vddk: Add support for VDDK 8.0.0
f19e3f
f19e3f
There are no changes in any of the structures or enums that we rely on.
f19e3f
f19e3f
Reported-by: Ming Xie
f19e3f
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2143889
f19e3f
(cherry picked from commit dbe12ed499baeea94d603db55cad9e971e0ebcf0)
f19e3f
---
f19e3f
 plugins/vddk/nbdkit-vddk-plugin.pod | 2 +-
f19e3f
 plugins/vddk/vddk.c                 | 4 +++-
f19e3f
 2 files changed, 4 insertions(+), 2 deletions(-)
f19e3f
f19e3f
diff --git a/plugins/vddk/nbdkit-vddk-plugin.pod b/plugins/vddk/nbdkit-vddk-plugin.pod
f19e3f
index c56faddc..c94c41eb 100644
f19e3f
--- a/plugins/vddk/nbdkit-vddk-plugin.pod
f19e3f
+++ b/plugins/vddk/nbdkit-vddk-plugin.pod
f19e3f
@@ -419,7 +419,7 @@ by this build.
f19e3f
 
f19e3f
 =item C<vddk_library_version=...>
f19e3f
 
f19e3f
-The VDDK major library version: 5, 6, 7, ...
f19e3f
+The VDDK major library version: 5, 6, 7, 8, ...
f19e3f
 If this is omitted it means the library could not be loaded.
f19e3f
 
f19e3f
 =item C<vddk_dll=...>
f19e3f
diff --git a/plugins/vddk/vddk.c b/plugins/vddk/vddk.c
f19e3f
index 96615749..2140789a 100644
f19e3f
--- a/plugins/vddk/vddk.c
f19e3f
+++ b/plugins/vddk/vddk.c
f19e3f
@@ -77,7 +77,7 @@ int vddk_debug_datapath = 1;
f19e3f
 static void *dl;                           /* dlopen handle */
f19e3f
 static bool init_called;                   /* was InitEx called */
f19e3f
 static __thread int error_suppression;     /* threadlocal error suppression */
f19e3f
-static int library_version;                /* VDDK major: 5, 6, 7, ... */
f19e3f
+static int library_version;                /* VDDK major: 5, 6, 7, 8, ... */
f19e3f
 
f19e3f
 static enum { NONE = 0, ZLIB, FASTLZ, SKIPZ } compression; /* compression */
f19e3f
 static char *config;                       /* config */
f19e3f
@@ -309,6 +309,8 @@ load_library (bool load_error_is_fatal)
f19e3f
      * but our testsuite is easier to write if we point libdir
f19e3f
      * directly to a stub .so.
f19e3f
      */
f19e3f
+    { "lib64/libvixDiskLib.so.8", 8 },
f19e3f
+    { "libvixDiskLib.so.8",       8 },
f19e3f
     { "lib64/libvixDiskLib.so.7", 7 },
f19e3f
     { "libvixDiskLib.so.7",       7 },
f19e3f
     { "lib64/libvixDiskLib.so.6", 6 },
f19e3f
-- 
f19e3f
2.31.1
f19e3f