mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
qemu: Fix indentation in qemuTranslateDiskSourcePool
Commit e1a4d08baf9a8cc86c8b5ca27da9aeedb34b5908 was pushed with bad indentation the iSCSI pool translation code.
This commit is contained in:
parent
2cb2abc04d
commit
90f9ccb4f2
@ -1416,28 +1416,28 @@ qemuTranslateDiskSourcePool(virConnectPtr conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (def->srcpool->mode) {
|
switch (def->srcpool->mode) {
|
||||||
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DEFAULT:
|
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DEFAULT:
|
||||||
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_LAST:
|
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_LAST:
|
||||||
def->srcpool->mode = VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST;
|
def->srcpool->mode = VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST;
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST:
|
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_HOST:
|
||||||
def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_BLOCK;
|
def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_BLOCK;
|
||||||
if (!(def->src = virStorageVolGetPath(vol)))
|
if (!(def->src = virStorageVolGetPath(vol)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DIRECT:
|
case VIR_DOMAIN_DISK_SOURCE_POOL_MODE_DIRECT:
|
||||||
def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_NETWORK;
|
def->srcpool->actualtype = VIR_DOMAIN_DISK_TYPE_NETWORK;
|
||||||
def->protocol = VIR_DOMAIN_DISK_PROTOCOL_ISCSI;
|
def->protocol = VIR_DOMAIN_DISK_PROTOCOL_ISCSI;
|
||||||
|
|
||||||
if (qemuTranslateDiskSourcePoolAuth(def, pooldef) < 0)
|
if (qemuTranslateDiskSourcePoolAuth(def, pooldef) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (qemuAddISCSIPoolSourceHost(def, pooldef) < 0)
|
if (qemuAddISCSIPoolSourceHost(def, pooldef) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_STORAGE_POOL_MPATH:
|
case VIR_STORAGE_POOL_MPATH:
|
||||||
case VIR_STORAGE_POOL_RBD:
|
case VIR_STORAGE_POOL_RBD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user