WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [libxen] Add support in libxen for specifying an ima

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [libxen] Add support in libxen for specifying an image in vbd class
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Fri, 03 Nov 2006 12:10:56 -0700
Delivery-date: Fri, 03 Nov 2006 11:12:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20060909)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [libxen] Add support in libxen for specifying an image in vbd class, Jim Fehlig <=