* [PATCH] check for access type in xs.c
@ 2005-09-08 16:50 NAHieu
0 siblings, 0 replies; only message in thread
From: NAHieu @ 2005-09-08 16:50 UTC (permalink / raw)
To: xen-devel
Some library functions in xs.c don't support /proc/xen/xenbus
interface (yet). Here is the patch to fix the problem.
diff -r c2705e74efba tools/xenstore/xs.c
--- a/tools/xenstore/xs.c Thu Sep 8 15:22:01 2005
+++ b/tools/xenstore/xs.c Fri Sep 9 01:48:38 2005
@@ -508,6 +508,9 @@
struct xsd_sockmsg msg;
char **ret;
+ if (h->type == DEV)
+ return NULL; /* support only with socket interface */
+
if (!read_all(h->fd, &msg, sizeof(msg)))
return NULL;
@@ -624,6 +627,8 @@
bool xs_shutdown(struct xs_handle *h)
{
+ if (h->type == DEV)
+ return false; /* support only with socket interface */
bool ret = xs_bool(xs_single(h, XS_SHUTDOWN, "", NULL));
if (ret) {
char c;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-08 16:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 16:50 [PATCH] check for access type in xs.c NAHieu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.