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