[Pkg-xen-changes] r871 - in trunk/xen/debian: . patches
Bastian Blank
waldi at alioth.debian.org
Wed Apr 13 16:03:25 UTC 2011
Author: waldi
Date: Wed Apr 13 16:03:18 2011
New Revision: 871
Log:
* debian/changelog: Update.
* debian/patches/series: Add patch.
* debian/patches/tools-xenstore-compatibility.diff:
Workaround incompatiblity with xenstored from 4.0.
Added:
trunk/xen/debian/patches/tools-xenstore-compatibility.diff
Modified:
trunk/xen/debian/changelog
trunk/xen/debian/patches/series
Modified: trunk/xen/debian/changelog
==============================================================================
--- trunk/xen/debian/changelog Mon Apr 11 20:19:51 2011 (r870)
+++ trunk/xen/debian/changelog Wed Apr 13 16:03:18 2011 (r871)
@@ -2,6 +2,7 @@
* Re-enable hvmloader:
- Use packaged ipxe.
+ * Workaround incompatibility with xenstored of Xen 4.0.
-- Bastian Blank <waldi at debian.org> Mon, 11 Apr 2011 15:07:42 +0000
Modified: trunk/xen/debian/patches/series
==============================================================================
--- trunk/xen/debian/patches/series Mon Apr 11 20:19:51 2011 (r870)
+++ trunk/xen/debian/patches/series Wed Apr 13 16:03:18 2011 (r871)
@@ -48,3 +48,5 @@
tools-xenmon-install.diff
tools-python-shebang.diff
+
+tools-xenstore-compatibility.diff
Added: trunk/xen/debian/patches/tools-xenstore-compatibility.diff
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/xen/debian/patches/tools-xenstore-compatibility.diff Wed Apr 13 16:03:18 2011 (r871)
@@ -0,0 +1,51 @@
+diff -r dbf2ddf652dc tools/xenstore/xenstore_client.c
+--- a/tools/xenstore/xenstore_client.c Thu Apr 07 15:26:58 2011 +0100
++++ b/tools/xenstore/xenstore_client.c Mon Apr 11 22:15:41 2011 +0200
+@@ -633,7 +633,7 @@
+ max_width = ws.ws_col - 2;
+ }
+
+- xsh = xs_open(socket ? XS_OPEN_SOCKETONLY : 0);
++ xsh = xs_open(socket ? XS_OPEN_SOCKETONLY : XS_OPEN_DOMAINONLY);
+ if (xsh == NULL) err(1, "xs_open");
+
+ again:
+diff -r dbf2ddf652dc tools/xenstore/xs.c
+--- a/tools/xenstore/xs.c Thu Apr 07 15:26:58 2011 +0100
++++ b/tools/xenstore/xs.c Mon Apr 11 22:15:41 2011 +0200
+@@ -250,17 +250,19 @@
+
+ struct xs_handle *xs_domain_open(void)
+ {
+- return xs_open(0);
++ return xs_open(XS_OPEN_DOMAINONLY);
+ }
+
+ struct xs_handle *xs_open(unsigned long flags)
+ {
+ struct xs_handle *xsh = NULL;
+
+- if (flags & XS_OPEN_READONLY)
+- xsh = get_handle(xs_daemon_socket_ro(), flags);
+- else
+- xsh = get_handle(xs_daemon_socket(), flags);
++ if (!(flags & XS_OPEN_DOMAINONLY)) {
++ if (flags & XS_OPEN_READONLY)
++ xsh = get_handle(xs_daemon_socket_ro(), flags);
++ else
++ xsh = get_handle(xs_daemon_socket(), flags);
++ }
+
+ if (!xsh && !(flags & XS_OPEN_SOCKETONLY))
+ xsh = get_handle(xs_domain_dev(), flags);
+diff -r dbf2ddf652dc tools/xenstore/xs.h
+--- a/tools/xenstore/xs.h Thu Apr 07 15:26:58 2011 +0100
++++ b/tools/xenstore/xs.h Mon Apr 11 22:15:41 2011 +0200
+@@ -26,6 +26,7 @@
+
+ #define XS_OPEN_READONLY 1UL<<0
+ #define XS_OPEN_SOCKETONLY 1UL<<1
++#define XS_OPEN_DOMAINONLY 1UL<<2
+
+ struct xs_handle;
+ typedef uint32_t xs_transaction_t;
More information about the Pkg-xen-changes
mailing list