mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
qemu: Fix indentation in qemuTranslateDiskSourcePool
Commit e1a4d08baf
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) {
|
||||
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_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;
|
||||
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 (qemuTranslateDiskSourcePoolAuth(def, pooldef) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (qemuAddISCSIPoolSourceHost(def, pooldef) < 0)
|
||||
goto cleanup;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
if (qemuAddISCSIPoolSourceHost(def, pooldef) < 0)
|
||||
goto cleanup;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case VIR_STORAGE_POOL_MPATH:
|
||||
case VIR_STORAGE_POOL_RBD:
|
||||
|
Loading…
Reference in New Issue
Block a user