rpms/libvirt/devel libvirt-source-dir-fix.patch, NONE, 1.1 libvirt.spec, 1.79, 1.80

Chris Lalancette (clalance) fedora-extras-commits at redhat.com
Fri Mar 28 18:46:29 UTC 2008


Author: clalance

Update of /cvs/pkgs/rpms/libvirt/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv779

Modified Files:
	libvirt.spec 
Added Files:
	libvirt-source-dir-fix.patch 
Log Message:
Fix another bug in the fs handling, where the <source> tags when doing
dumpxml didn't match up with what was used to define the pool to begin with.



libvirt-source-dir-fix.patch:

--- NEW FILE libvirt-source-dir-fix.patch ---
Index: src/storage_conf.c
===================================================================
RCS file: /data/cvs/libvirt/src/storage_conf.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- a/src/storage_conf.c	27 Feb 2008 10:37:19 -0000	1.3
+++ b/src/storage_conf.c	28 Mar 2008 17:56:44 -0000	1.4
@@ -479,7 +479,7 @@
     }
     if ((options->flags & VIR_STORAGE_BACKEND_POOL_SOURCE_DIR) &&
         def->source.dir &&
-        virBufferVSprintf(buf,"    <directory path='%s'/>\n", def->source.dir) < 0)
+        virBufferVSprintf(buf,"    <dir path='%s'/>\n", def->source.dir) < 0)
         goto no_memory;
     if ((options->flags & VIR_STORAGE_BACKEND_POOL_SOURCE_ADAPTER) &&
         def->source.adapter &&


Index: libvirt.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libvirt/devel/libvirt.spec,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- libvirt.spec	27 Mar 2008 19:18:59 -0000	1.79
+++ libvirt.spec	28 Mar 2008 18:45:49 -0000	1.80
@@ -21,7 +21,7 @@
 Summary: Library providing a simple API virtualization
 Name: libvirt
 Version: 0.4.1
-Release: 5%{?dist}%{?extra_release}
+Release: 6%{?dist}%{?extra_release}
 License: LGPL
 Group: Development/Libraries
 Source: libvirt-%{version}.tar.gz
@@ -33,6 +33,7 @@
 Patch5: %{name}-%{version}-tap-ifname.patch
 Patch6: libvirt-storage-api-iscsi-sendtarget.patch 
 Patch7: libvirt-iscsi-sysfs4.patch 
+Patch8: libvirt-source-dir-fix.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 URL: http://libvirt.org/
 BuildRequires: python python-devel
@@ -152,6 +153,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %build
 # Xen is available only on i386 x86_64 ia64
@@ -295,6 +297,10 @@
 %doc docs/examples/python
 
 %changelog
+* Fri Mar 28 2008 Chris Lalancette <clalance at redhat.com> - 0.4.1-6.fc9
+- When dumping XML for a storage pool, make the <source> directory tag
+  match the <dir> tag used for specifying the pool in the first place
+
 * Thu Mar 27 2008 Chris Lalancette <clalance at redhat.com> - 0.4.1-5.fc9
 - Do iscsiadm sendtarget before trying to do login
 - Do sysfs scanning for iSCSI LUNs instead of trying to parse them from




More information about the fedora-extras-commits mailing list