Hello community,

here is the log from the commit of package python-virtinst for openSUSE:Factory 
checked in at 2012-03-06 13:41:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-virtinst (Old)
 and      /work/SRC/openSUSE:Factory/.python-virtinst.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-virtinst", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-virtinst/python-virtinst.changes  
2012-02-22 15:54:58.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-virtinst.new/python-virtinst.changes     
2012-03-06 13:41:38.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Feb 29 15:02:02 MST 2012 - [email protected]
+
+- KVM: Add cache mode support for directsync and unsafe
+
+-------------------------------------------------------------------

New:
----
  virtinst-add-cache-modes.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-virtinst.spec ++++++
--- /var/tmp/diff_new_pack.gmsZRl/_old  2012-03-06 13:41:39.000000000 +0100
+++ /var/tmp/diff_new_pack.gmsZRl/_new  2012-03-06 13:41:39.000000000 +0100
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
 %{!?python_sitelib: %define python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 # This macro is used for the continuous automated builds. It just
@@ -42,6 +43,7 @@
 Patch10:        virtinst-cdrom.diff
 Patch12:        virtinst-storage-ocfs2.diff
 Patch13:        virtinst-qed.diff
+Patch14:        virtinst-add-cache-modes.diff
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 #BuildArch: noarch
@@ -60,6 +62,7 @@
 %endif
 BuildRequires:  gettext
 BuildRequires:  python-devel
+Obsoletes:      virt-manager <= 0.9.0
 
 %description
 pyhon-virtinst contains python modules and tools (virt-install,
@@ -75,13 +78,13 @@
 %patch10 -p1
 %patch12 -p1
 %patch13 -p1
+%patch14 -p1
 
 %build
 python setup.py build
 
 %install
-#rm -rf $RPM_BUILD_ROOT
-python setup.py install -O1 --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
+python setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
 # Back compat in case people hardcoded old /usr/sbin/virt-install location
 mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
 ln -s ../bin/virt-install $RPM_BUILD_ROOT/%{_sbindir}/virt-install

++++++ virtinst-add-cache-modes.diff ++++++
Index: virtinst-0.600.1/virtinst/VirtualDisk.py
===================================================================
--- virtinst-0.600.1.orig/virtinst/VirtualDisk.py
+++ virtinst-0.600.1/virtinst/VirtualDisk.py
@@ -301,10 +301,13 @@ class VirtualDisk(VirtualDevice):
     driver_types = [DRIVER_TAP_RAW, DRIVER_TAP_QCOW,
         DRIVER_TAP_QED, DRIVER_TAP_VMDK, DRIVER_TAP_VDISK]
 
+    CACHE_MODE_DIRECTSYNC = "directsync"
     CACHE_MODE_NONE = "none"
+    CACHE_MODE_UNSAFE = "unsafe"
     CACHE_MODE_WRITETHROUGH = "writethrough"
     CACHE_MODE_WRITEBACK = "writeback"
-    cache_types = [CACHE_MODE_NONE, CACHE_MODE_WRITETHROUGH,
+    cache_types = [CACHE_MODE_DIRECTSYNC, CACHE_MODE_NONE,
+        CACHE_MODE_UNSAFE, CACHE_MODE_WRITETHROUGH,
         CACHE_MODE_WRITEBACK]
 
     DEVICE_DISK = "disk"
@@ -585,7 +588,7 @@ class VirtualDisk(VirtualDevice):
         @type bus: C{str}
         @param shareable: If disk can be shared among VMs
         @type shareable: C{bool}
-        @param driverCache: Disk cache mode (none, writethrough, writeback)
+        @param driverCache: Disk cache mode (none, directsync, unsafe, 
writethrough, writeback)
         @type driverCache: member of cache_types
         @param selinuxLabel: Used for labelling new or relabel existing storage
         @type selinuxLabel: C{str}
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to