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

[Xen-API] [PATCH] Use correct upstream name for /dev/xen/evtchn



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1266255301 0
# Node ID 9f350544554f7f22998eaeb2a9ada738fae3fa7a
# Parent  fe4cae1a911111d826b599362464ec894f2fc437
Use correct upstream name for /dev/xen/evtchn.

This name has been upstream since forever and the typo here was
leaving us with two device nodes.

If the device is not present then do not create it. The assumption
that /dev/xen/ev{en,}tchn is minor 63 does not hold since the driver
requests a dynamic minor.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

diff -r fe4cae1a9111 -r 9f350544554f eventchn/eventchn_stubs.c
--- a/eventchn/eventchn_stubs.c Mon Jan 25 12:06:20 2010 +0000
+++ b/eventchn/eventchn_stubs.c Mon Feb 15 17:35:01 2010 +0000
@@ -41,9 +41,7 @@
 #include <caml/callback.h>
 #include <caml/fail.h>
 
-#define EVENTCHN_PATH "/dev/xen/eventchn"
-#define EVENTCHN_MAJOR 10
-#define EVENTCHN_MINOR 63
+#define EVENTCHN_PATH "/dev/xen/evtchn"
 
 #define WITH_INJECTION_CAPABILITY
 #include "eventchn_injection.c"
@@ -73,11 +71,7 @@
        pre_eventchn_open();
 
        fd = open(EVENTCHN_PATH, O_RDWR);
-       if (fd == -1 && errno == ENOENT) {
-               mkdir("/dev/xen", 0640);
-               mknod(EVENTCHN_PATH, S_IFCHR | 0640, makedev(10, 63));
-               fd = open(EVENTCHN_PATH, O_RDWR);
-       }
+
        return fd;
 }
 

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

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