]> xenbits.xensource.com Git - people/liuw/mini-os.git/commitdiff
minios: blkfront should set protocol node
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 24 Sep 2008 09:18:20 +0000 (10:18 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 24 Sep 2008 09:18:20 +0000 (10:18 +0100)
From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
blkfront.c

index 4820a5f2dd6cde21f5adc44d869588d380917737..d4b0ea54ce294452cc9e5921c1e2f593e21db918 100644 (file)
@@ -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>
@@ -141,6 +142,12 @@ again:
         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;
+    }
 
     err = xenbus_printf(xbt, nodename, "state", "%u",
             4); /* connected */