ia64/xen-unstable

changeset 13577:c545932a18f3

bimodal blkfront: Create a new node "protocol" in xenstore, add the
protocol name it speaks there.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
author kfraser@localhost.localdomain
date Tue Jan 23 14:48:42 2007 +0000 (2007-01-23)
parents b9ffa4b49d97
children d54c8dab1e64
files linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Tue Jan 23 14:47:26 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c	Tue Jan 23 14:48:42 2007 +0000
     1.3 @@ -44,6 +44,7 @@
     1.4  #include <xen/evtchn.h>
     1.5  #include <xen/xenbus.h>
     1.6  #include <xen/interface/grant_table.h>
     1.7 +#include <xen/interface/io/protocols.h>
     1.8  #include <xen/gnttab.h>
     1.9  #include <asm/hypervisor.h>
    1.10  #include <asm/maddr.h>
    1.11 @@ -180,6 +181,12 @@ again:
    1.12  		message = "writing event-channel";
    1.13  		goto abort_transaction;
    1.14  	}
    1.15 +	err = xenbus_printf(xbt, dev->nodename, "protocol", "%s",
    1.16 +			    XEN_IO_PROTO_ABI_NATIVE);
    1.17 +	if (err) {
    1.18 +		message = "writing protocol";
    1.19 +		goto abort_transaction;
    1.20 +	}
    1.21  
    1.22  	err = xenbus_transaction_end(xbt, 0);
    1.23  	if (err) {