Blame SOURCES/libvirt-cim-0.6.3-7e5f561c.patch

9c78f5
From 7e5f561c35a58a35225fccd6ecd418f2715e2a1a Mon Sep 17 00:00:00 2001
9c78f5
From: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
9c78f5
Date: Fri, 11 Oct 2013 13:47:32 +0200
9c78f5
Subject: [PATCH 34/60] VSDC: Fix endianess issues
9c78f5
9c78f5
SetProperty was called with int instead of uint16_t in a few places.
9c78f5
This leads to failures on big-endian systems like s390. Found
9c78f5
by running cimtest.
9c78f5
9c78f5
Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
9c78f5
Signed-off-by: John Ferlan <jferlan@redhat.com>
9c78f5
---
9c78f5
 src/Virt_SettingsDefineCapabilities.c | 16 ++++++++--------
9c78f5
 1 file changed, 8 insertions(+), 8 deletions(-)
9c78f5
9c78f5
diff --git a/src/Virt_SettingsDefineCapabilities.c b/src/Virt_SettingsDefineCapabilities.c
9c78f5
index 78c128c..fe16e3f 100644
9c78f5
--- a/src/Virt_SettingsDefineCapabilities.c
9c78f5
+++ b/src/Virt_SettingsDefineCapabilities.c
9c78f5
@@ -1349,7 +1349,7 @@ static CMPIStatus _new_volume_template(const CMPIObjectPath *ref,
9c78f5
         int ret = 0;
9c78f5
         struct virt_pool *pool = NULL;
9c78f5
         CMPIInstance *inst = NULL;
9c78f5
-        int type = 0;
9c78f5
+        uint16_t type = 0;
9c78f5
         const char *name;
9c78f5
         const char *path;
9c78f5
         uint16_t alloc = 0;
9c78f5
@@ -1712,13 +1712,13 @@ static CMPIStatus disk_pool_template(const CMPIObjectPath *ref,
9c78f5
         CMPIArray *array;
9c78f5
         CMPIStatus s = {CMPI_RC_OK, NULL};
9c78f5
         const char *path = "/dev/null";
9c78f5
-        int type[7] = {DISK_POOL_DIR,
9c78f5
-                       DISK_POOL_FS,
9c78f5
-                       DISK_POOL_NETFS,
9c78f5
-                       DISK_POOL_DISK,
9c78f5
-                       DISK_POOL_ISCSI,
9c78f5
-                       DISK_POOL_LOGICAL,
9c78f5
-                       DISK_POOL_SCSI};
9c78f5
+        uint16_t type[7] = {DISK_POOL_DIR,
9c78f5
+                            DISK_POOL_FS,
9c78f5
+                            DISK_POOL_NETFS,
9c78f5
+                            DISK_POOL_DISK,
9c78f5
+                            DISK_POOL_ISCSI,
9c78f5
+                            DISK_POOL_LOGICAL,
9c78f5
+                            DISK_POOL_SCSI};
9c78f5
         int pool_types = 7;
9c78f5
         int i;
9c78f5
         uint16_t autostart;
9c78f5
-- 
9c78f5
2.1.0
9c78f5