From: Jim Fehlig <jfehlig@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] [libxen] Add support in libxen for specifying an image in vbd class
Date: Fri, 03 Nov 2006 12:10:56 -0700 [thread overview]
Message-ID: <454B9440.9080701@novell.com> (raw)
[-- 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
reply other threads:[~2006-11-03 19:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=454B9440.9080701@novell.com \
--to=jfehlig@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.