Skip to content

Instantly share code, notes, and snippets.

@priteau
Created August 26, 2010 18:05
Show Gist options
  • Save priteau/551877 to your computer and use it in GitHub Desktop.
Save priteau/551877 to your computer and use it in GitHub Desktop.
Patch to xen-3.0.3-105.el5_5.5 SPECS to fix QCOW images
diff --git a/xen.spec b/xen.spec
index 5222b70..30b9a69 100644
--- a/xen.spec
+++ b/xen.spec
@@ -3,7 +3,7 @@
Summary: Xen is a virtual machine monitor
Name: xen
Version: 3.0.3
-Release: 105%{?dist}.5
+Release: 105%{?dist}.6
Group: Development/Libraries
License: GPLv2+, LGPLv2+
URL: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html
@@ -480,6 +480,17 @@ Patch958: xen-use-pci-flr-for-intel-82599-vf.patch
# Fix memory leak in xenstore (rhbz 616091)
Patch959: xen-fix-memory-leak-in-xenstore.patch
+# Fix QCOW support
+#
+# The following patch makes backing file recognized as RAW
+Patch960: xen-blktap-qcow-handle-backing-files-correctly.patch
+Patch961: xen-blktap-qcow-odirect.patch
+Patch962: xen-blktap-qcow-roundup.patch
+Patch963: xen-blktap-qcow-empty.patch
+Patch964: xen-blktap-qcow-handling.patch
+# Fix wrong ROUNDUP macro usage added in Patch962
+Patch965: xen-blktap-qcow-fix-roundup-usage.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: transfig libidn-devel zlib-devel texi2html SDL-devel curl-devel
BuildRequires: libX11-devel python-devel ghostscript tetex-latex
@@ -1120,6 +1131,13 @@ mv xen-3.0.3_0-src/tools/misc/xend tools/misc
# Fix memory leak in xenstore (rhbz 616091)
%patch959 -p1
+%patch960 -p1
+%patch961 -p1
+%patch962 -p1
+%patch963 -p1
+%patch964 -p1
+%patch965 -p1
+
%build
# libvncserver first
cat > tools/check/check_libvncserver <<EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment