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

[Xen-devel] [patch] minios: blkfront should set protocol node


  • To: Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Gerd Hoffmann <kraxel@xxxxxxxxxx>
  • Date: Tue, 23 Sep 2008 20:12:34 +0200
  • Delivery-date: Tue, 23 Sep 2008 11:13:03 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

  Hi,

$subject says all.

Should be applied to both 3.3 and devel trees.

thanks,
  Gerd
diff -r 71a0bf42f9c1 extras/mini-os/blkfront.c
--- a/extras/mini-os/blkfront.c Mon Sep 22 10:34:00 2008 +0100
+++ b/extras/mini-os/blkfront.c Tue Sep 23 20:10:32 2008 +0200
@@ -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 @@
                 "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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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