[PATCH] qemu: Fix indentation in qemuTranslateDiskSourcePool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit e1a4d08baf9a8cc86c8b5ca27da9aeedb34b5908 was pushed with bad
indentation the iSCSI pool translation code.
---

Notes:
    Pushing under the trivial rule.

 src/qemu/qemu_conf.c | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 44e4320..4378791 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -1416,28 +1416,28 @@ qemuTranslateDiskSourcePool(virConnectPtr conn,
         }

        switch (def->srcpool->mode) {
-        case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DEFAULT:
-        case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_LAST:
-            def->srcpool->mode = VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST;
-            /* fallthrough */
-        case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST:
-            def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_BLOCK;
-            if (!(def->src = virStorageVolGetPath(vol)))
-                goto cleanup;
-            break;
-
-        case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DIRECT:
-            def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_NETWORK;
-            def->protocol = VIR_DOMAIN_DISK_PROTOCOL_ISCSI;
-
-            if (qemuTranslateDiskSourcePoolAuth(def, pooldef) < 0)
-                goto cleanup;
-
-            if (qemuAddISCSIPoolSourceHost(def, pooldef) < 0)
-                goto cleanup;
-            break;
-        }
-        break;
+       case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DEFAULT:
+       case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_LAST:
+           def->srcpool->mode = VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST;
+           /* fallthrough */
+       case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST:
+           def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_BLOCK;
+           if (!(def->src = virStorageVolGetPath(vol)))
+               goto cleanup;
+           break;
+
+       case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DIRECT:
+           def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_NETWORK;
+           def->protocol = VIR_DOMAIN_DISK_PROTOCOL_ISCSI;
+
+           if (qemuTranslateDiskSourcePoolAuth(def, pooldef) < 0)
+               goto cleanup;
+
+           if (qemuAddISCSIPoolSourceHost(def, pooldef) < 0)
+               goto cleanup;
+           break;
+       }
+       break;

     case VIR_STORAGE_POOL_MPATH:
     case VIR_STORAGE_POOL_RBD:
-- 
1.8.4.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]