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

[Xen-changelog] [xen-unstable] minios: blkfront should set protocol node



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1222247900 -3600
# Node ID 2842dbc5679c168190a1401e0b39ada8d06f089a
# Parent  c6f80d1227cbef9c98ded74a6e51bd950794b3c8
minios: blkfront should set protocol node

From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 extras/mini-os/blkfront.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r c6f80d1227cb -r 2842dbc5679c extras/mini-os/blkfront.c
--- a/extras/mini-os/blkfront.c Wed Sep 24 10:17:18 2008 +0100
+++ b/extras/mini-os/blkfront.c Wed Sep 24 10:18:20 2008 +0100
@@ -8,6 +8,7 @@
 #include <events.h>
 #include <errno.h>
 #include <xen/io/blkif.h>
+#include <xen/io/protocols.h>
 #include <gnttab.h>
 #include <xmalloc.h>
 #include <time.h>
@@ -139,6 +140,12 @@ again:
                 "event-channel", "%u", dev->evtchn);
     if (err) {
         message = "writing event-channel";
+        goto abort_transaction;
+    }
+    err = xenbus_printf(xbt, nodename,
+                "protocol", "%s", XEN_IO_PROTO_ABI_NATIVE);
+    if (err) {
+        message = "writing protocol";
         goto abort_transaction;
     }
 

_______________________________________________
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®.