ia64/xen-unstable

changeset 18538:2842dbc5679c

minios: blkfront should set protocol node

From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Sep 24 10:18:20 2008 +0100 (2008-09-24)
parents c6f80d1227cb
children 981e4d7eb8a8
files extras/mini-os/blkfront.c
line diff
     1.1 --- a/extras/mini-os/blkfront.c	Wed Sep 24 10:17:18 2008 +0100
     1.2 +++ b/extras/mini-os/blkfront.c	Wed Sep 24 10:18:20 2008 +0100
     1.3 @@ -8,6 +8,7 @@
     1.4  #include <events.h>
     1.5  #include <errno.h>
     1.6  #include <xen/io/blkif.h>
     1.7 +#include <xen/io/protocols.h>
     1.8  #include <gnttab.h>
     1.9  #include <xmalloc.h>
    1.10  #include <time.h>
    1.11 @@ -141,6 +142,12 @@ again:
    1.12          message = "writing event-channel";
    1.13          goto abort_transaction;
    1.14      }
    1.15 +    err = xenbus_printf(xbt, nodename,
    1.16 +                "protocol", "%s", 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_printf(xbt, nodename, "state", "%u",
    1.23              4); /* connected */