mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
qemu: command: take fsdriver type into account
Split the formatting by fsdriver type to allow adding a new type. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f363af7e35
commit
f6d7d8612d
@ -2678,8 +2678,21 @@ qemuBuildFilesystemCommandLine(virCommandPtr cmd,
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < def->nfss; i++) {
|
||||
if (qemuBuildFSDevCommandLine(cmd, def->fss[i], def, qemuCaps) < 0)
|
||||
return -1;
|
||||
switch ((virDomainFSDriverType) def->fss[i]->fsdriver) {
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_DEFAULT:
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_PATH:
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_HANDLE:
|
||||
/* these drivers are handled by virtio-9p-pci */
|
||||
if (qemuBuildFSDevCommandLine(cmd, def->fss[i], def, qemuCaps) < 0)
|
||||
return -1;
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_LOOP:
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_NBD:
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_PLOOP:
|
||||
case VIR_DOMAIN_FS_DRIVER_TYPE_LAST:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user