2015-05-04 22:15:01 +02:00
|
|
|
Reference: fate#315125:
|
2014-04-04 03:55:04 +02:00
|
|
|
Set NOCOW flag to newly created volume by default, to solve performance
|
|
|
|
issue on btrfs.
|
|
|
|
|
|
|
|
Signed-off-by: Chunyan Liu <cyliu@suse.com>
|
|
|
|
|
2019-02-04 19:46:20 +01:00
|
|
|
Index: virt-manager-2.1.0/virtinst/storage.py
|
2014-04-04 03:55:04 +02:00
|
|
|
===================================================================
|
2019-02-04 19:46:20 +01:00
|
|
|
--- virt-manager-2.1.0.orig/virtinst/storage.py
|
|
|
|
+++ virt-manager-2.1.0/virtinst/storage.py
|
2019-04-09 18:37:08 +02:00
|
|
|
@@ -629,6 +629,11 @@ class StorageVolume(_StorageObject):
|
2017-03-09 20:10:48 +01:00
|
|
|
return self._pool_xml.get_disk_type()
|
2016-06-22 00:34:03 +02:00
|
|
|
file_type = property(_get_vol_type)
|
2014-04-04 03:55:04 +02:00
|
|
|
|
|
|
|
+ def _nocow_default_cb(self):
|
2016-01-12 21:36:29 +01:00
|
|
|
+ return self.conn.check_support(
|
|
|
|
+ self.conn.SUPPORT_CONN_NOCOW)
|
2018-10-30 23:00:52 +01:00
|
|
|
+ nocow = XMLProperty("./target/nocow", is_bool=True)
|
2014-04-04 03:55:04 +02:00
|
|
|
+
|
|
|
|
|
2016-06-22 00:34:03 +02:00
|
|
|
##################
|
|
|
|
# XML properties #
|
2019-02-04 19:46:20 +01:00
|
|
|
Index: virt-manager-2.1.0/virtinst/support.py
|
2016-01-12 21:36:29 +01:00
|
|
|
===================================================================
|
2019-02-04 19:46:20 +01:00
|
|
|
--- virt-manager-2.1.0.orig/virtinst/support.py
|
|
|
|
+++ virt-manager-2.1.0/virtinst/support.py
|
2019-05-23 17:40:50 +02:00
|
|
|
@@ -267,6 +267,8 @@ SUPPORT_CONN_MACHVIRT_PCI_DEFAULT = _mak
|
2018-10-30 23:00:52 +01:00
|
|
|
SUPPORT_CONN_QEMU_XHCI = _make(version="3.3.0", hv_version={"qemu": "2.9.0"})
|
2018-02-06 21:28:37 +01:00
|
|
|
SUPPORT_CONN_VNC_NONE_AUTH = _make(hv_version={"qemu": "2.9.0"})
|
2019-05-23 17:40:50 +02:00
|
|
|
SUPPORT_CONN_DEVICE_BOOT_ORDER = _make(hv_version={"qemu": 0, "test": 0})
|
2016-01-12 21:36:29 +01:00
|
|
|
+SUPPORT_CONN_NOCOW = _make(
|
|
|
|
+ version="1.2.18", hv_version={"qemu": "2.2.0", "test": 0})
|
|
|
|
|
2018-10-30 23:00:52 +01:00
|
|
|
# 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
|