Add support in libxen for specifying an image in vbd class
PATCH 1/1 Add support in libxen for specifying an image in vbd class
In libxen there is no way to specify and existing image when creating a vbd. xend supports an 'image' property for this class. This patch extends this support to the c-binding as well.
Jim
# HG changeset patch
# User [email protected]
# Date 1162580871 25200
# Node ID 2305fe4e455d3d1eba7f59b806a8a963c3b6d312
# Parent 20204db0891b0b7c10959822e3283656c3600500
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 uder control of an SR.
tools/libxen/include/xen_vbd.h +1 -0
@@ -69,6 +69,7 @@ typedef struct xen_vbd_recordstruct 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;
tools/libxen/src/xen_vbd.c +3 -0
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel