# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 9febecbeaeb0aa9bd51ee654a7179fbcb49df343
# Parent 0c332cf81e644e75662288d433bc0c97f9ac25cb
[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@xxxxxxxxxx>
---
tools/libxen/include/xen_vbd.h | 1 +
tools/libxen/src/xen_vbd.c | 3 +++
2 files changed, 4 insertions(+)
diff -r 0c332cf81e64 -r 9febecbeaeb0 tools/libxen/include/xen_vbd.h
--- a/tools/libxen/include/xen_vbd.h Tue Nov 07 10:41:35 2006 +0000
+++ b/tools/libxen/include/xen_vbd.h Tue Nov 07 10:46:03 2006 +0000
@@ -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;
diff -r 0c332cf81e64 -r 9febecbeaeb0 tools/libxen/src/xen_vbd.c
--- a/tools/libxen/src/xen_vbd.c Tue Nov 07 10:41:35 2006 +0000
+++ b/tools/libxen/src/xen_vbd.c Tue Nov 07 10:46:03 2006 +0000
@@ -52,6 +52,9 @@ static const struct_member xen_vbd_recor
{ .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) },
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|