674941bbf7
53022930-lxc-connection-fix.patch 530229cb-non-x86-kvm-creation-fix.patch 53023f56-dont-alter-caps-machine-list-on-create.patch 53030858-generate_target-fix.patch 53037798-not-customizing-generate_target-fix.patch 53047532-dont-get-duplicated-disks.patch 53047595-calculate-disk-bus-properly.patch 530987c4-disk-bus-calculation-fix.patch 530c021c-attempt-empty-path-on-virDomainBlockStats.patch 530cd6ab-log-broken-xml.patch 530cf4de-allow-numbered-object-names.patch 530cfa5e-close-connection-on-tick-failure-fix.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=146
29 lines
963 B
Diff
29 lines
963 B
Diff
Reference: bnc#813082
|
|
|
|
Index: virt-manager-1.0.0/virtinst/devicedisk.py
|
|
===================================================================
|
|
--- virt-manager-1.0.0.orig/virtinst/devicedisk.py
|
|
+++ virt-manager-1.0.0/virtinst/devicedisk.py
|
|
@@ -558,6 +558,12 @@ class VirtualDisk(VirtualDevice):
|
|
return None
|
|
if self.conn.is_qemu():
|
|
return self.DRIVER_QEMU
|
|
+ else:
|
|
+ drvtypes = ['qcow2', 'vmdk']
|
|
+ if self.type in drvtypes:
|
|
+ return 'tap'
|
|
+ else:
|
|
+ return self.DRIVER_QEMU
|
|
return None
|
|
|
|
def _get_default_driver_type(self):
|
|
@@ -571,6 +577,8 @@ class VirtualDisk(VirtualDevice):
|
|
http://lists.gnu.org/archive/html/qemu-devel/2008-04/msg00675.html
|
|
"""
|
|
if self.driver_name != self.DRIVER_QEMU:
|
|
+ if self.type != 'file':
|
|
+ return self.type
|
|
return None
|
|
|
|
if self._storage_creator:
|