Blame SOURCES/0013-vddk-Update-for-VDDK-7.0-RHBZ-1831969.patch

538efe
From bf1eabb211004f3dc74dd243e2adf52a13290377 Mon Sep 17 00:00:00 2001
538efe
From: "Richard W.M. Jones" <rjones@redhat.com>
538efe
Date: Wed, 6 May 2020 09:33:32 +0100
538efe
Subject: [PATCH 13/19] vddk: Update for VDDK 7.0 (RHBZ#1831969).
538efe
538efe
This version of VDDK changes the soname to libvixDiskLib.so.7.
538efe
538efe
Thanks: Ming Xie
538efe
(cherry picked from commit 7f53999179af98aa47569c6771517f7dfa08c5d0)
538efe
---
538efe
 plugins/vddk/vddk-structs.h | 4 +++-
538efe
 plugins/vddk/vddk.c         | 1 +
538efe
 2 files changed, 4 insertions(+), 1 deletion(-)
538efe
538efe
diff --git a/plugins/vddk/vddk-structs.h b/plugins/vddk/vddk-structs.h
538efe
index 86087871..fff7201b 100644
538efe
--- a/plugins/vddk/vddk-structs.h
538efe
+++ b/plugins/vddk/vddk-structs.h
538efe
@@ -32,7 +32,7 @@
538efe
 
538efe
 /* Types and structs that we pass to or return from the VDDK API.
538efe
  *
538efe
- * Updated to VDDK 6.7
538efe
+ * Updated to VDDK 7.0
538efe
  */
538efe
 
538efe
 #ifndef NBDKIT_VDDK_STRUCTS_H
538efe
@@ -127,6 +127,8 @@ typedef struct VixDiskLibInfo {
538efe
   int numLinks;
538efe
   char *parentFileNameHint;
538efe
   char *uuid;
538efe
+  uint32_t logicalSectorSize;   /* Added in 7.0. */
538efe
+  uint32_t physicalSectorSize;  /* Added in 7.0. */
538efe
 } VixDiskLibInfo;
538efe
 
538efe
 typedef struct {
538efe
diff --git a/plugins/vddk/vddk.c b/plugins/vddk/vddk.c
538efe
index 5d3764d6..97ef5297 100644
538efe
--- a/plugins/vddk/vddk.c
538efe
+++ b/plugins/vddk/vddk.c
538efe
@@ -149,6 +149,7 @@ vddk_load (void)
538efe
 {
538efe
   static const char *sonames[] = {
538efe
     /* Prefer the newest library in case multiple exist. */
538efe
+    "libvixDiskLib.so.7",
538efe
     "libvixDiskLib.so.6",
538efe
     "libvixDiskLib.so.5",
538efe
   };
538efe
-- 
538efe
2.18.2
538efe