virt-manager/virtinst-vol-default-nocow.patch
Charles Arnold d8b1788c9f - Update to virt-manager 2.2.1 (fate#326786)
virt-manager-2.2.1.tar.bz2
  * CVE-2019-10183: Replace –unattended user-password and admin-password with user-password-file and admin-password-file (Fabiano Fidêncio)
  * Consistent –memballoon default across non-x86 (Andrea Bolognani)
  * virt-install: add –numatune memnode.* (Athina Plaskasoviti)
  * Drop hard dep on gtksourceview4, gtksourceview3 is fine as well
- Drop patches no longer needed
  033e9702-xmleditor-Handle-gtksourceview3-as-well-as-gtksourceview4.patch
  51d28f04-unattended-Dont-log-user-admin-passwords.patch
  5312a961-virt-install-Revive-wait-0-as-alias-for-noautoconsole.patch
  58c68764-unattended-Read-the-passwords-from-a-file.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=477
2019-07-05 16:18:33 +00:00

35 lines
1.4 KiB
Diff

Reference: fate#315125:
Set NOCOW flag to newly created volume by default, to solve performance
issue on btrfs.
Signed-off-by: Chunyan Liu <cyliu@suse.com>
Index: virt-manager-2.2.1/virtinst/storage.py
===================================================================
--- virt-manager-2.2.1.orig/virtinst/storage.py
+++ virt-manager-2.2.1/virtinst/storage.py
@@ -548,6 +548,11 @@ class StorageVolume(_StorageObject):
return self._pool_xml.get_disk_type()
file_type = property(_get_vol_type)
+ def _nocow_default_cb(self):
+ return self.conn.check_support(
+ self.conn.conn_nocow)
+ nocow = XMLProperty("./target/nocow", is_bool=True)
+
##################
# XML properties #
Index: virt-manager-2.2.1/virtinst/support.py
===================================================================
--- virt-manager-2.2.1.orig/virtinst/support.py
+++ virt-manager-2.2.1/virtinst/support.py
@@ -283,6 +283,7 @@ class SupportCache:
conn_vnc_none_auth = _make(hv_version={"qemu": "2.9.0"})
conn_device_boot_order = _make(hv_version={"qemu": 0, "test": 0})
conn_riscv_virt_pci_default = _make(version="5.3.0", hv_version={"qemu": "4.0.0"})
+ conn_nocow = _make(version="1.2.18", hv_version={"qemu": "2.2.0", "test": 0})
# We choose qemu 2.11.0 as the first version to target for q35 default.
# That's not really based on anything except reasonably modern at the