[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenbackendd: fix mistaken treatment of unknown backend (eg console) as VIF/VBD



# HG changeset patch
# User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
# Date 1310749789 -3600
# Node ID c1d7fa123dae73708da7306c0ec611d6fa6a6140
# Parent  fbb448cf5cba5f441ad94f7783a0a1394fd638f9
xenbackendd: fix mistaken treatment of unknown backend (eg console) as VIF/VBD

Fixed a cleanup of a variable used in a loop and added a debug message.

Signed-off-by: Roger Pau Monne <roger.pau@xxxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r fbb448cf5cba -r c1d7fa123dae tools/xenbackendd/xenbackendd.c
--- a/tools/xenbackendd/xenbackendd.c   Thu Jul 14 13:24:19 2011 +0100
+++ b/tools/xenbackendd/xenbackendd.c   Fri Jul 15 18:09:49 2011 +0100
@@ -152,7 +152,7 @@
        char *sstate;
        char *p;
        char buf[80];
-       int type = DEVTYPE_UNKNOWN;
+       int type;
        int ch;
        int debug_fd;
        FILE *pidfile_f;
@@ -239,6 +239,7 @@
 
        for (;;) {
                vec = xs_read_watch(xs, &num);
+               dodebug("read from xen watch: %s", *vec);
                if (!vec) {
                        dolog(LOG_ERR, "xs_read_watch: NULL\n");
                        continue;
@@ -272,6 +273,7 @@
                if (s != NULL && state != 6 /* XenbusStateClosed */)
                        goto next2;
 
+               type = DEVTYPE_UNKNOWN;
                if (strncmp(vec[XS_WATCH_PATH],
                    DOMAIN_PATH "/backend/vif",
                    strlen(DOMAIN_PATH "/backend/vif")) == 0)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.