Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:GA
virt-manager
virtinst-set-cache-mode-unsafe-for-install.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtinst-set-cache-mode-unsafe-for-install.patch of Package virt-manager
Set cache mode for target installation disk to unsafe for better performance. Index: virt-manager-2.1.0/virtinst/installer.py =================================================================== --- virt-manager-2.1.0.orig/virtinst/installer.py +++ virt-manager-2.1.0/virtinst/installer.py @@ -290,10 +290,21 @@ class Installer(object): guest.os.kernel_args, guest.on_reboot) = data def _get_install_xml(self, guest): + # At install time set the target disk to 'unsafe' for + # better performance if the target is not a block device + saved_cache = "None" + if guest.devices.disk: + target_disk = guest.devices.disk[0] + saved_cache = target_disk.driver_cache + if target_disk.type != DeviceDisk.TYPE_BLOCK: + target_disk.driver_cache = DeviceDisk.CACHE_MODE_UNSAFE + data = self._prepare_get_install_xml(guest) try: self._alter_bootconfig(guest) ret = guest.get_xml() + if saved_cache != "None": + target_disk.driver_cache = saved_cache return ret finally: self._remove_install_cdrom_media(guest)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor