From: NAHieu <nahieu@gmail.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] check for access type in xs.c
Date: Fri, 9 Sep 2005 01:50:03 +0900 [thread overview]
Message-ID: <5d7aca9505090809501cea754f@mail.gmail.com> (raw)
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;
reply other threads:[~2005-09-08 16:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5d7aca9505090809501cea754f@mail.gmail.com \
--to=nahieu@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.