|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] bimodal blkfront: Create a new node	"prot
 
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1169563722 0
# Node ID c545932a18f33b27e5c889e6e51759b23bd08f12
# Parent  b9ffa4b49d9711edba34d490a2263fd909b2acfe
bimodal blkfront: Create a new node "protocol" in xenstore, add the
protocol name it speaks there.
Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c |    7 +++++++
 1 files changed, 7 insertions(+)
diff -r b9ffa4b49d97 -r c545932a18f3 
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
--- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Tue Jan 23 
14:47:26 2007 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c      Tue Jan 23 
14:48:42 2007 +0000
@@ -44,6 +44,7 @@
 #include <xen/evtchn.h>
 #include <xen/xenbus.h>
 #include <xen/interface/grant_table.h>
+#include <xen/interface/io/protocols.h>
 #include <xen/gnttab.h>
 #include <asm/hypervisor.h>
 #include <asm/maddr.h>
@@ -178,6 +179,12 @@ again:
                            irq_to_evtchn_port(info->irq));
        if (err) {
                message = "writing event-channel";
+               goto abort_transaction;
+       }
+       err = xenbus_printf(xbt, dev->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
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-unstable] bimodal blkfront: Create a new node	"protocol" in xenstore, add the,
Xen patchbot-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |