WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xenbackendd: fix mistaken treatment of un

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenbackendd: fix mistaken treatment of unknown backend (eg console) as VIF/VBD
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Sun, 17 Jul 2011 12:55:09 +0100
Delivery-date: Sun, 17 Jul 2011 04:55:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenbackendd: fix mistaken treatment of unknown backend (eg console) as VIF/VBD, Xen patchbot-unstable <=