projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2e81c3
)
minios: blkfront should set protocol node
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 24 Sep 2008 09:18:20 +0000
(10:18 +0100)
committer
Keir 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>
extras/mini-os/blkfront.c
patch
|
blob
|
history
diff --git
a/extras/mini-os/blkfront.c
b/extras/mini-os/blkfront.c
index 4820a5f2dd6cde21f5adc44d869588d380917737..d4b0ea54ce294452cc9e5921c1e2f593e21db918 100644
(file)
--- a/
extras/mini-os/blkfront.c
+++ b/
extras/mini-os/blkfront.c
@@
-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 */