[XENAPI] Add 'image' field to xen_vbd_record, allowing an image to be
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 7 Nov 2006 10:46:03 +0000 (10:46 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 7 Nov 2006 10:46:03 +0000 (10:46 +0000)
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>
tools/libxen/include/xen_vbd.h
tools/libxen/src/xen_vbd.c

index 48d4c32ea7526b488b6b65c8dad16869bff3e04f..44bdfb13aec9cb0bce714e8059a3937dff6b35d3 100644 (file)
@@ -69,6 +69,7 @@ typedef struct xen_vbd_record
     struct xen_vm_record_opt *vm;
     struct xen_vdi_record_opt *vdi;
     char *device;
+    char *image;
     enum xen_vbd_mode mode;
     enum xen_driver_type driver;
     double io_read_kbs;
index eac4e3f26b5110a97c52c002e658397fe5adf7c9..b14a52d043787a1a22bf05b332a388cc701a1cad 100644 (file)
@@ -52,6 +52,9 @@ static const struct_member xen_vbd_record_struct_members[] =
         { .key = "device",
           .type = &abstract_type_string,
           .offset = offsetof(xen_vbd_record, device) },
+        { .key = "image",
+          .type = &abstract_type_string,
+          .offset = offsetof(xen_vbd_record, image) },
         { .key = "mode",
           .type = &xen_vbd_mode_abstract_type_,
           .offset = offsetof(xen_vbd_record, mode) },