d1212d53d0
performance virtinst-set-cache-mode-unsafe-for-install.patch - Renamed virtman-lxc-no-default-disk.patch to an upstream timestamp name 5385d602-lxc-no-default-disk.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=180
28 lines
976 B
Diff
28 lines
976 B
Diff
--- virt-manager-1.0.1/virtinst/guest.py.orig 2014-05-29 10:27:00.609005060 -0600
|
|
+++ virt-manager-1.0.1/virtinst/guest.py 2014-05-29 10:27:03.588027133 -0600
|
|
@@ -343,6 +343,12 @@ class Guest(XMLBuilder):
|
|
self.on_reboot = action
|
|
self.on_crash = action
|
|
|
|
+ # At install time only set the target disk to 'unsafe' for
|
|
+ # better performance
|
|
+ if install:
|
|
+ target_disk = self.get_devices("disk")[0]
|
|
+ saved_cache = target_disk.driver_cache
|
|
+ target_disk.driver_cache = "unsafe"
|
|
self._set_defaults()
|
|
|
|
self.bootloader = None
|
|
@@ -362,7 +368,10 @@ class Guest(XMLBuilder):
|
|
self.bootloader = "/usr/bin/pygrub"
|
|
self.os.clear()
|
|
|
|
- return self.get_xml_config()
|
|
+ xml_config = self.get_xml_config()
|
|
+ if install:
|
|
+ target_disk.driver_cache = saved_cache
|
|
+ return xml_config
|
|
|
|
def get_continue_inst(self):
|
|
"""
|