99cbc7
From 193f57411bcc3b67a331763f28d20b93c08b5191 Mon Sep 17 00:00:00 2001
99cbc7
Message-Id: <193f57411bcc3b67a331763f28d20b93c08b5191@dist-git>
99cbc7
From: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
99cbc7
Date: Wed, 25 Jul 2018 13:33:50 +0200
99cbc7
Subject: [PATCH] esx storage: Fix typo lsilogic -> lsiLogic
99cbc7
99cbc7
Commit 77298458d027db4d3e082213355e2d792f65158d changed the esx storage
99cbc7
adapter from busLogic to lsilogic, introducing a typo. Changing it back
99cbc7
to lsiLogic (with capital L) solves the issue. With this change, libvirt can now
99cbc7
create volumes in ESX again.
99cbc7
99cbc7
Thanks to Jaroslav Suchanek who figured out what was the issue in the
99cbc7
first place.
99cbc7
99cbc7
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1571759
99cbc7
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
99cbc7
(cherry picked from commit a1450d774f9412b6589418bf8bcafd12690d098a)
99cbc7
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
99cbc7
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
99cbc7
---
99cbc7
 src/esx/esx_storage_backend_vmfs.c | 4 ++--
99cbc7
 1 file changed, 2 insertions(+), 2 deletions(-)
99cbc7
99cbc7
diff --git a/src/esx/esx_storage_backend_vmfs.c b/src/esx/esx_storage_backend_vmfs.c
99cbc7
index 630a6aa8c9..bb2de4b69f 100644
99cbc7
--- a/src/esx/esx_storage_backend_vmfs.c
99cbc7
+++ b/src/esx/esx_storage_backend_vmfs.c
99cbc7
@@ -967,9 +967,9 @@ esxStorageVolCreateXML(virStoragePoolPtr pool,
99cbc7
         /*
99cbc7
          * FIXME: The adapter type is a required parameter, but there is no
99cbc7
          * way to let the user specify it in the volume XML config. Therefore,
99cbc7
-         * default to 'lsilogic' here.
99cbc7
+         * default to 'lsiLogic' here.
99cbc7
          */
99cbc7
-        virtualDiskSpec->adapterType = (char *)"lsilogic";
99cbc7
+        virtualDiskSpec->adapterType = (char *)"lsiLogic";
99cbc7
 
99cbc7
         virtualDiskSpec->capacityKb->value =
99cbc7
           VIR_DIV_UP(def->target.capacity, 1024); /* Scale from byte to kilobyte */
99cbc7
-- 
99cbc7
2.18.0
99cbc7