From 9c83aa21f3042d2857cbb251f48397eff4af7664 Mon Sep 17 00:00:00 2001 Message-Id: <9c83aa21f3042d2857cbb251f48397eff4af7664@dist-git> From: Peter Krempa Date: Wed, 26 Feb 2014 14:55:09 +0100 Subject: [PATCH] qemu: Fix indentation in qemuTranslateDiskSourcePool https://bugzilla.redhat.com/show_bug.cgi?id=1032370 Commit e1a4d08baf9a8cc86c8b5ca27da9aeedb34b5908 was pushed with bad indentation the iSCSI pool translation code. (cherry picked from commit 90f9ccb4f23f3edabb2bd9b700a6de88b486ed3d) Signed-off-by: Jiri Denemark --- 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 a2a7f97..2f1f587 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1385,28 +1385,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.9.0