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-devel

[Xen-devel] [PATCH] xcs should use /var/lib/xen/

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] xcs should use /var/lib/xen/
From: Muli Ben-Yehuda <mulix@xxxxxxxxx>
Date: Fri, 4 Mar 2005 22:29:08 +0200
Delivery-date: Fri, 04 Mar 2005 20:30:39 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
xend does not run for me with the latest nightly snapshot because xcs
won't start. xcs won't start because it's using /var/xen, while it
should be using /var/lib/xen. This patch changes xcs and xend to use
/var/lib/xen/xcs_socket, and make xcs give a better error message when
it cannot bind to its socket.

Signed-off-by: Muli Ben-Yehuda <mulix@xxxxxxxxx>

diff -Naurp xen-unstable-src-200503031032/tools/misc/xend vpci/tools/misc/xend
--- xen-unstable-src-200503031032/tools/misc/xend       2005-03-02 
23:13:34.000000000 -0500
+++ vpci/tools/misc/xend        2005-03-04 14:59:00.000000000 -0500
@@ -24,7 +24,7 @@ import sys
 import socket
 import time
 
-XCS_PATH = "/var/xen/xcs_socket"
+XCS_PATH = "/var/lib/xen/xcs_socket"
 XCS_EXEC = "/usr/sbin/xcs"
 XCS_LOGFILE = "/var/log/xcs.log"
 
diff -Naurp xen-unstable-src-200503031032/tools/xcs/xcs.c vpci/tools/xcs/xcs.c
--- xen-unstable-src-200503031032/tools/xcs/xcs.c       2005-03-02 
23:13:32.000000000 -0500
+++ vpci/tools/xcs/xcs.c        2005-03-04 15:00:52.000000000 -0500
@@ -241,7 +241,7 @@ static int listen_socket (char *listen_p
 
     if (bind(s, (struct sockaddr *) &a, sizeof (a)) < 0) 
     {
-        perror ("bind");
+        fprintf (stderr, "bind('%s'): %s\n", listen_path, strerror(errno));
         close (s);
         return -1;
     }
diff -Naurp xen-unstable-src-200503031032/tools/xcs/xcs_proto.h 
vpci/tools/xcs/xcs_proto.h
--- xen-unstable-src-200503031032/tools/xcs/xcs_proto.h 2005-03-02 
23:13:31.000000000 -0500
+++ vpci/tools/xcs/xcs_proto.h  2005-03-04 14:59:05.000000000 -0500
@@ -9,7 +9,7 @@
 #ifndef  __XCS_PROTO_H__
 #define  __XCS_PROTO_H__
 
-#define XCS_SUN_PATH     "/var/xen/xcs_socket"
+#define XCS_SUN_PATH     "/var/lib/xen/xcs_socket"
 
 /* xcs message types: */
 #define XCS_CONNECT_CTRL       0 /* This is a control connection.     */

-- 
Muli Ben-Yehuda
http://www.mulix.org | http://mulix.livejournal.com/

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xcs should use /var/lib/xen/, Muli Ben-Yehuda <=