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-changelog

[Xen-changelog] [xen-unstable] libxl: disks: expose new "script" paramet

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxl: disks: expose new "script" parameter for external block scripts
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Thu, 16 Jun 2011 11:12:25 +0100
Delivery-date: Thu, 16 Jun 2011 03:26:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1307036794 -3600
# Node ID f4f8359e6545ce4cfa96321646385e9e5cf52bb8
# Parent  085575a5150e256647a5a069a45631823a9656c6
libxl: disks: expose new "script" parameter for external block scripts

This is not currently implemented.  Applications setting it to
anything but NULL will cause an error.  Code to set it from xl
configuration files will appear later in this series.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---


diff -r 085575a5150e -r f4f8359e6545 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Jun 02 18:46:33 2011 +0100
+++ b/tools/libxl/libxl.c       Thu Jun 02 18:46:34 2011 +0100
@@ -970,6 +970,13 @@
         goto out_free;
     }
 
+    if (disk->script) {
+        LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "External block scripts"
+                   " not yet supported, sorry");
+        rc = ERROR_INVAL;
+        goto out_free;
+    }
+
     devid = libxl__device_disk_dev_number(disk->vdev, NULL, NULL);
     if (devid==-1) {
         LIBXL__LOG(ctx, LIBXL__LOG_ERROR, "Invalid or unsupported"
diff -r 085575a5150e -r f4f8359e6545 tools/libxl/libxl.idl
--- a/tools/libxl/libxl.idl     Thu Jun 02 18:46:33 2011 +0100
+++ b/tools/libxl/libxl.idl     Thu Jun 02 18:46:34 2011 +0100
@@ -279,6 +279,7 @@
     ("vdev", string),
     ("backend", libxl_disk_backend),
     ("format", libxl_disk_format),
+    ("script", string),
     ("unpluggable", integer),
     ("readwrite", integer),
     ("is_cdrom", integer),

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxl: disks: expose new "script" parameter for external block scripts, Xen patchbot-unstable <=