All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] minios: blkfront should set protocol node
@ 2008-09-23 18:12 Gerd Hoffmann
  0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2008-09-23 18:12 UTC (permalink / raw)
  To: Xen Development Mailing List

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

  Hi,

$subject says all.

Should be applied to both 3.3 and devel trees.

thanks,
  Gerd

[-- Attachment #2: xen-minios-blk-set-protocol.patch --]
[-- Type: text/plain, Size: 723 bytes --]

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;
     }
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-23 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-23 18:12 [patch] minios: blkfront should set protocol node Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.