[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] [libxen] 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 jfehlig@xxxxxxxxxxxxxxxxxxxxxxxxx
# 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.

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>

diff -r 20204db0891b -r 2305fe4e455d tools/libxen/include/xen_vbd.h
--- a/tools/libxen/include/xen_vbd.h    Thu Nov 02 18:52:04 2006 +0000
+++ b/tools/libxen/include/xen_vbd.h    Fri Nov 03 12:07:51 2006 -0700
@@ -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 20204db0891b -r 2305fe4e455d tools/libxen/src/xen_vbd.c
--- a/tools/libxen/src/xen_vbd.c        Thu Nov 02 18:52:04 2006 +0000
+++ b/tools/libxen/src/xen_vbd.c        Fri Nov 03 12:07:51 2006 -0700
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.