direct-io.hg

changeset 12267:9febecbeaeb0

[XENAPI] Add 'image' field to xen_vbd_record, allowing an image to be
associated with the vbd. xend supports this field and the client
bindings need it to support existing images that are not under
control of an SR.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author kfraser@localhost.localdomain
date Tue Nov 07 10:46:03 2006 +0000 (2006-11-07)
parents 0c332cf81e64
children 6f3c40ee2488
files tools/libxen/include/xen_vbd.h tools/libxen/src/xen_vbd.c
line diff
     1.1 --- a/tools/libxen/include/xen_vbd.h	Tue Nov 07 10:41:35 2006 +0000
     1.2 +++ b/tools/libxen/include/xen_vbd.h	Tue Nov 07 10:46:03 2006 +0000
     1.3 @@ -69,6 +69,7 @@ typedef struct xen_vbd_record
     1.4      struct xen_vm_record_opt *vm;
     1.5      struct xen_vdi_record_opt *vdi;
     1.6      char *device;
     1.7 +    char *image;
     1.8      enum xen_vbd_mode mode;
     1.9      enum xen_driver_type driver;
    1.10      double io_read_kbs;
     2.1 --- a/tools/libxen/src/xen_vbd.c	Tue Nov 07 10:41:35 2006 +0000
     2.2 +++ b/tools/libxen/src/xen_vbd.c	Tue Nov 07 10:46:03 2006 +0000
     2.3 @@ -52,6 +52,9 @@ static const struct_member xen_vbd_recor
     2.4          { .key = "device",
     2.5            .type = &abstract_type_string,
     2.6            .offset = offsetof(xen_vbd_record, device) },
     2.7 +        { .key = "image",
     2.8 +          .type = &abstract_type_string,
     2.9 +          .offset = offsetof(xen_vbd_record, image) },
    2.10          { .key = "mode",
    2.11            .type = &xen_vbd_mode_abstract_type_,
    2.12            .offset = offsetof(xen_vbd_record, mode) },