Accepting request 39879 from Virtualization
checked in (request 39879) OBS-URL: https://build.opensuse.org/request/show/39879 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=51
This commit is contained in:
parent
5c77cadc26
commit
08357b440a
3
libvirt-0.8.0.tar.bz2
Normal file
3
libvirt-0.8.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:98ff762add810e318d2d586ea419219e71fe29f25f32eab20bae1cd9edbbc703
|
||||||
|
size 7478088
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:037256df745a96ba141dbfc4e4197e8bc16c51f21c834f4f89c599c379792698
|
|
||||||
size 7706670
|
|
@ -1,20 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed May 12 11:29:44 MDT 2010 - jfehlig@novell.com
|
|
||||||
|
|
||||||
- Don't package directories/files under /var/run
|
|
||||||
- Add upstream commit 34a7f3f6 to fix unintentional breakage of
|
|
||||||
RPC protocol.
|
|
||||||
- Disable numa support in openSUSE11.3/Factory pending resolution
|
|
||||||
of bnc#598488
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Apr 30 15:25:52 MDT 2010 - jfehlig@novell.com
|
|
||||||
|
|
||||||
- Update to libvirt 0.8.1
|
|
||||||
- Add virDomainGetBlockInfo API to query disk sizing
|
|
||||||
- Start dnsmasq from libvirtd with --dhcp-hostsfile option
|
|
||||||
- lots of improvements and bug fixes
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 12 18:15:38 MDT 2010 - jfehlig@novell.com
|
Mon Apr 12 18:15:38 MDT 2010 - jfehlig@novell.com
|
||||||
|
|
||||||
|
23
libvirt.spec
23
libvirt.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libvirt (Version 0.8.1)
|
# spec file for package libvirt (Version 0.8.0)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -62,10 +62,6 @@
|
|||||||
%ifnarch x86_64 ia64
|
%ifnarch x86_64 ia64
|
||||||
%define with_numactl 0
|
%define with_numactl 0
|
||||||
%endif
|
%endif
|
||||||
# TEMP: no numa on 11.3 / Factory until bnc#598488 is resolved
|
|
||||||
%if 0%{?suse_version} > 1120
|
|
||||||
%define with_numactl 0
|
|
||||||
%endif
|
|
||||||
# SLES doesn't contain OpenVZ, VBox, UML, OpenNebula, or ESX
|
# SLES doesn't contain OpenVZ, VBox, UML, OpenNebula, or ESX
|
||||||
%if 0%{?sles_version}
|
%if 0%{?sles_version}
|
||||||
%define with_openvz 0
|
%define with_openvz 0
|
||||||
@ -117,11 +113,11 @@ Url: http://libvirt.org/
|
|||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
AutoReqProv: yes
|
AutoReqProv: yes
|
||||||
Version: 0.8.1
|
Version: 0.8.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
# The client side, i.e. shared libs and virsh are in a subpackage
|
# The client side, i.e. shared libs and virsh are in a subpackage
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: libvirt-client = %{version}-%{release}
|
||||||
Requires: bridge-utils
|
Requires: bridge-utils
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
Requires: lvm2
|
Requires: lvm2
|
||||||
@ -142,7 +138,6 @@ Requires: PolicyKit >= 0.6
|
|||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: libvirtd.init
|
Source1: libvirtd.init
|
||||||
# Upstream patches
|
# Upstream patches
|
||||||
Patch0: remote-rm-unused-field.patch
|
|
||||||
# Need to go upstream
|
# Need to go upstream
|
||||||
Patch100: xen-name-for-devid.patch
|
Patch100: xen-name-for-devid.patch
|
||||||
Patch101: socat.patch
|
Patch101: socat.patch
|
||||||
@ -199,7 +194,7 @@ Authors:
|
|||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-client = %{version}-%{release} libxml2-devel
|
Requires: %{name} = %{version} libxml2-devel
|
||||||
%if %{with_xen}
|
%if %{with_xen}
|
||||||
Requires: xen-devel
|
Requires: xen-devel
|
||||||
%endif
|
%endif
|
||||||
@ -221,7 +216,7 @@ Authors:
|
|||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Libvirt is a C toolkit to interract with the virtualization
|
Libvirt is a C toolkit to interract with the virtualization
|
||||||
@ -239,7 +234,7 @@ Authors:
|
|||||||
License: LGPLv2.1+
|
License: LGPLv2.1+
|
||||||
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
Summary: A C toolkit to interract with the virtualization capabilities of Linux
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}-client = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
%py_requires
|
%py_requires
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
@ -256,7 +251,6 @@ Authors:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
%patch102
|
%patch102
|
||||||
@ -358,6 +352,7 @@ cd docs ; cp -a *.html $RPM_BUILD_ROOT%{_docdir}/%{name} ; cp -a *.png $RPM_BU
|
|||||||
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
|
||||||
# don't autostart the default network
|
# don't autostart the default network
|
||||||
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/libvirt
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a
|
rm $RPM_BUILD_ROOT%{_libdir}/*.*a $RPM_BUILD_ROOT%{py_sitedir}/*.*a
|
||||||
%if ! %{with_lxc}
|
%if ! %{with_lxc}
|
||||||
@ -431,6 +426,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config %{_sysconfdir}/libvirt/libvirtd.conf
|
%config %{_sysconfdir}/libvirt/libvirtd.conf
|
||||||
%config %{_sysconfdir}/libvirt/qemu/networks/default.xml
|
%config %{_sysconfdir}/libvirt/qemu/networks/default.xml
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
|
||||||
|
%dir %{_localstatedir}/run/libvirt/
|
||||||
%dir %{_localstatedir}/lib/libvirt/
|
%dir %{_localstatedir}/lib/libvirt/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
||||||
@ -445,6 +441,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
%config (noreplace)%{_sysconfdir}/libvirt/qemu.conf
|
%config (noreplace)%{_sysconfdir}/libvirt/qemu.conf
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/qemu/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/qemu/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/cache/libvirt/qemu/
|
%dir %attr(0700, root, root) %{_localstatedir}/cache/libvirt/qemu/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
||||||
@ -452,12 +449,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%if %{with_lxc}
|
%if %{with_lxc}
|
||||||
%config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
|
%config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/lxc/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
|
||||||
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_lxc
|
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_lxc
|
||||||
%endif
|
%endif
|
||||||
%if %{with_uml}
|
%if %{with_uml}
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/uml/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
|
||||||
%endif
|
%endif
|
||||||
|
@ -1,50 +0,0 @@
|
|||||||
commit 34a7f3f6be9c63ac3d4c4604c1fb2482a4e5053b
|
|
||||||
Author: Matthew Booth <mbooth@redhat.com>
|
|
||||||
Date: Fri May 7 16:38:05 2010 +0200
|
|
||||||
|
|
||||||
Remove unused nwfilter field from struct remote_error
|
|
||||||
|
|
||||||
Change 965466c1 added a new field to struct remote_error, which broke
|
|
||||||
the RPC protocol. Fortunately the new field is unused, so this change
|
|
||||||
simply removes it again.
|
|
||||||
|
|
||||||
* src/remote/remote_protocol.(c|h|x): Remove remote_nwfilter from struct
|
|
||||||
remote_error
|
|
||||||
|
|
||||||
diff --git a/src/remote/remote_protocol.c b/src/remote/remote_protocol.c
|
|
||||||
index 187281d..972bf52 100644
|
|
||||||
--- a/src/remote/remote_protocol.c
|
|
||||||
+++ b/src/remote/remote_protocol.c
|
|
||||||
@@ -227,8 +227,6 @@ xdr_remote_error (XDR *xdrs, remote_error *objp)
|
|
||||||
return FALSE;
|
|
||||||
if (!xdr_remote_network (xdrs, &objp->net))
|
|
||||||
return FALSE;
|
|
||||||
- if (!xdr_remote_nwfilter (xdrs, &objp->nwfilter))
|
|
||||||
- return FALSE;
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff --git a/src/remote/remote_protocol.h b/src/remote/remote_protocol.h
|
|
||||||
index 6f01da7..a600af6 100644
|
|
||||||
--- a/src/remote/remote_protocol.h
|
|
||||||
+++ b/src/remote/remote_protocol.h
|
|
||||||
@@ -143,7 +143,6 @@ struct remote_error {
|
|
||||||
int int1;
|
|
||||||
int int2;
|
|
||||||
remote_network net;
|
|
||||||
- remote_nwfilter nwfilter;
|
|
||||||
};
|
|
||||||
typedef struct remote_error remote_error;
|
|
||||||
|
|
||||||
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
|
|
||||||
index 8000ee0..1ce488c 100644
|
|
||||||
--- a/src/remote/remote_protocol.x
|
|
||||||
+++ b/src/remote/remote_protocol.x
|
|
||||||
@@ -266,7 +266,6 @@ struct remote_error {
|
|
||||||
int int1;
|
|
||||||
int int2;
|
|
||||||
remote_network net;
|
|
||||||
- remote_nwfilter nwfilter;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Authentication types available thus far.... */
|
|
@ -1,8 +1,8 @@
|
|||||||
Index: libvirt-0.8.1/src/remote/remote_driver.c
|
Index: libvirt-0.8.0/src/remote/remote_driver.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-0.8.1.orig/src/remote/remote_driver.c
|
--- libvirt-0.8.0.orig/src/remote/remote_driver.c
|
||||||
+++ libvirt-0.8.1/src/remote/remote_driver.c
|
+++ libvirt-0.8.0/src/remote/remote_driver.c
|
||||||
@@ -769,12 +769,29 @@ doRemoteOpen (virConnectPtr conn,
|
@@ -768,12 +768,29 @@ doRemoteOpen (virConnectPtr conn,
|
||||||
cmd_argv[j++] = strdup ("none");
|
cmd_argv[j++] = strdup ("none");
|
||||||
}
|
}
|
||||||
cmd_argv[j++] = strdup (priv->hostname);
|
cmd_argv[j++] = strdup (priv->hostname);
|
||||||
|
@ -13,10 +13,10 @@ Date: Wed Jan 27 16:11:41 2010 -0700
|
|||||||
This approach allows removing a disk when domain is inactive. We
|
This approach allows removing a disk when domain is inactive. We
|
||||||
obviously can't search xenstore when the domain is inactive.
|
obviously can't search xenstore when the domain is inactive.
|
||||||
|
|
||||||
Index: libvirt-0.8.1/src/xen/xend_internal.c
|
Index: libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-0.8.1.orig/src/xen/xend_internal.c
|
--- libvirt-0.8.0.orig/src/xen/xend_internal.c
|
||||||
+++ libvirt-0.8.1/src/xen/xend_internal.c
|
+++ libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
@@ -91,6 +91,7 @@ xenDaemonFormatSxprOnePCI(virDomainHostd
|
@@ -91,6 +91,7 @@ xenDaemonFormatSxprOnePCI(virDomainHostd
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -25,7 +25,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
virDomainDeviceDefPtr dev,
|
virDomainDeviceDefPtr dev,
|
||||||
char *class,
|
char *class,
|
||||||
char *ref,
|
char *ref,
|
||||||
@@ -4164,7 +4165,7 @@ xenDaemonAttachDeviceFlags(virDomainPtr
|
@@ -4161,7 +4162,7 @@ xenDaemonAttachDeviceFlags(virDomainPtr
|
||||||
|
|
||||||
sexpr = virBufferContentAndReset(&buf);
|
sexpr = virBufferContentAndReset(&buf);
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
/* device doesn't exist, define it */
|
/* device doesn't exist, define it */
|
||||||
ret = xend_op(domain->conn, domain->name, "op", "device_create",
|
ret = xend_op(domain->conn, domain->name, "op", "device_create",
|
||||||
"config", sexpr, NULL);
|
"config", sexpr, NULL);
|
||||||
@@ -4281,7 +4282,7 @@ xenDaemonUpdateDeviceFlags(virDomainPtr
|
@@ -4274,7 +4275,7 @@ xenDaemonUpdateDeviceFlags(virDomainPtr
|
||||||
|
|
||||||
sexpr = virBufferContentAndReset(&buf);
|
sexpr = virBufferContentAndReset(&buf);
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
virXendError(VIR_ERR_OPERATION_INVALID, "%s",
|
virXendError(VIR_ERR_OPERATION_INVALID, "%s",
|
||||||
_("requested device does not exist"));
|
_("requested device does not exist"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@@ -4373,7 +4374,7 @@ xenDaemonDetachDeviceFlags(virDomainPtr
|
@@ -4366,7 +4367,7 @@ xenDaemonDetachDeviceFlags(virDomainPtr
|
||||||
def, xml, VIR_DOMAIN_XML_INACTIVE)))
|
def, xml, VIR_DOMAIN_XML_INACTIVE)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (dev->type == VIR_DOMAIN_DEVICE_HOSTDEV) {
|
if (dev->type == VIR_DOMAIN_DEVICE_HOSTDEV) {
|
||||||
@@ -6121,6 +6122,7 @@ error:
|
@@ -6114,6 +6115,7 @@ error:
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
virDomainXMLDevID(virDomainPtr domain,
|
virDomainXMLDevID(virDomainPtr domain,
|
||||||
@ -60,7 +60,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
virDomainDeviceDefPtr dev,
|
virDomainDeviceDefPtr dev,
|
||||||
char *class,
|
char *class,
|
||||||
char *ref,
|
char *ref,
|
||||||
@@ -6129,27 +6131,33 @@ virDomainXMLDevID(virDomainPtr domain,
|
@@ -6122,27 +6124,33 @@ virDomainXMLDevID(virDomainPtr domain,
|
||||||
xenUnifiedPrivatePtr priv = domain->conn->privateData;
|
xenUnifiedPrivatePtr priv = domain->conn->privateData;
|
||||||
char *xref;
|
char *xref;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: libvirt-0.8.1/src/xen/xend_internal.c
|
Index: libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-0.8.1.orig/src/xen/xend_internal.c
|
--- libvirt-0.8.0.orig/src/xen/xend_internal.c
|
||||||
+++ libvirt-0.8.1/src/xen/xend_internal.c
|
+++ libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
@@ -5531,7 +5531,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
@@ -5524,7 +5524,10 @@ xenDaemonFormatSxprDisk(virConnectPtr co
|
||||||
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
} else if (def->device == VIR_DOMAIN_DISK_DEVICE_CDROM) {
|
||||||
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
virBufferVSprintf(buf, "(dev '%s:cdrom')", def->dst);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: libvirt-0.8.1/src/xen/xend_internal.c
|
Index: libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-0.8.1.orig/src/xen/xend_internal.c
|
--- libvirt-0.8.0.orig/src/xen/xend_internal.c
|
||||||
+++ libvirt-0.8.1/src/xen/xend_internal.c
|
+++ libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
@@ -1596,7 +1596,8 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
@@ -1593,7 +1593,8 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
||||||
but blktap disks ended up in a differently named
|
but blktap disks ended up in a differently named
|
||||||
(device (tap ....)) block.... */
|
(device (tap ....)) block.... */
|
||||||
if (sexpr_lookup(node, "device/vbd") ||
|
if (sexpr_lookup(node, "device/vbd") ||
|
||||||
@ -12,7 +12,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
char *offset;
|
char *offset;
|
||||||
const char *src = NULL;
|
const char *src = NULL;
|
||||||
const char *dst = NULL;
|
const char *dst = NULL;
|
||||||
@@ -1607,10 +1608,14 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
@@ -1604,10 +1605,14 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
||||||
src = sexpr_node(node, "device/vbd/uname");
|
src = sexpr_node(node, "device/vbd/uname");
|
||||||
dst = sexpr_node(node, "device/vbd/dev");
|
dst = sexpr_node(node, "device/vbd/dev");
|
||||||
mode = sexpr_node(node, "device/vbd/mode");
|
mode = sexpr_node(node, "device/vbd/mode");
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: libvirt-0.8.1/src/xen/xend_internal.c
|
Index: libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libvirt-0.8.1.orig/src/xen/xend_internal.c
|
--- libvirt-0.8.0.orig/src/xen/xend_internal.c
|
||||||
+++ libvirt-0.8.1/src/xen/xend_internal.c
|
+++ libvirt-0.8.0/src/xen/xend_internal.c
|
||||||
@@ -1602,20 +1602,24 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
@@ -1599,20 +1599,24 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
||||||
const char *src = NULL;
|
const char *src = NULL;
|
||||||
const char *dst = NULL;
|
const char *dst = NULL;
|
||||||
const char *mode = NULL;
|
const char *mode = NULL;
|
||||||
@ -27,7 +27,7 @@ Index: libvirt-0.8.1/src/xen/xend_internal.c
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (VIR_ALLOC(disk) < 0)
|
if (VIR_ALLOC(disk) < 0)
|
||||||
@@ -1740,7 +1744,12 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
@@ -1737,7 +1741,12 @@ xenDaemonParseSxprDisks(virDomainDefPtr
|
||||||
if (VIR_REALLOC_N(def->disks, def->ndisks+1) < 0)
|
if (VIR_REALLOC_N(def->disks, def->ndisks+1) < 0)
|
||||||
goto no_memory;
|
goto no_memory;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user