virt-manager/virtinst-vol-default-nocow.patch
Charles Arnold f42ba1daac - Upstream bug fixes
533d708d-fix-showing-vcpus-values.patch
  533d7602-fix-changing-graphics-type.patch
  533d7be7-clarify-iscsi-IQN-fields.patch
- Dropped virtman-init-vm-processor-topology.patch in favor of
  upstream 533d708d-fix-showing-vcpus-values.patch

- bnc#869024 - Build0198: Only option to create a virtual machine is
  "import existing disk image" 
  virtman-add-s390x-arch-support.patch

- bnc#871642 - virt-manager wants to install libvirt-daemon-xen
  even when it is installed 
  xen.spec
- Xen: Virt-install won't reboot VM after install of SLE HVM guest
  because of libxl exception.
  virtinst-keep-cdrom-media-attached.patch

- Fate#315125: add NOCOW flag
  virtinst-vol-default-nocow.patch 

- Upstream bug fixes
  53375bad-raise-value-error-when-no-ipaddr-set.patch
  53388de2-show-port-number-for-active-autoport-VM.patch
  53397ae0-check-ip-address-format.patch
  53399b45-hook-into-domain-balloon-event.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=162
2014-04-04 01:55:04 +00:00

22 lines
742 B
Diff

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-1.0.0/virtinst/storage.py
===================================================================
--- virt-manager-1.0.0.orig/virtinst/storage.py
+++ virt-manager-1.0.0/virtinst/storage.py
@@ -656,6 +656,11 @@ class StorageVolume(_StorageObject):
lazy_refcounts = XMLProperty("./target/features/lazy_refcounts",
is_bool=True, default_cb=_lazy_refcounts_default_cb)
+ def _nocow_default_cb(self):
+ return True
+ nocow = XMLProperty("./target/nocow",
+ is_bool=True, default_cb=_nocow_default_cb)
+
######################
# Public API helpers #