All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [libxen] Add support in libxen for specifying an image in vbd class
@ 2006-11-03 19:10 Jim Fehlig
  0 siblings, 0 replies; only message in thread
From: Jim Fehlig @ 2006-11-03 19:10 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vbd_image.patch --]
[-- Type: text/x-patch; name="vbd_image.patch", Size: 1524 bytes --]

# HG changeset patch
# User jfehlig@jfehlig2.provo.novell.com
# 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@novell.com>

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) },

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-03 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 19:10 [PATCH] [libxen] Add support in libxen for specifying an image in vbd class Jim Fehlig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.