# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1299232872 0
# Node ID 61357fd45fd75880c2683fdc643bf2563659e37e
# Parent 0126a6729e8d8cf19ae5fedab2a0c79570e3ddbb
libxl: use full path to vif hotplug script script.
This improves compatibility with xm styke config files since xend does
this (see NetifController.getDeviceDetails() in
tools/python/xen/xend/server/netif.py) and
tools/hotplug/Linux/vif-setup expects an absolute path to the script.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 0126a6729e8d -r 61357fd45fd7 tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Thu Mar 03 16:51:19 2011 +0000
+++ b/tools/libxl/libxl.c Fri Mar 04 10:01:12 2011 +0000
@@ -1228,7 +1228,8 @@ int libxl_device_nic_add(libxl_ctx *ctx,
flexarray_append(back, "state");
flexarray_append(back, libxl__sprintf(&gc, "%d", 1));
flexarray_append(back, "script");
- flexarray_append(back, nic->script);
+ flexarray_append(back, libxl__sprintf(&gc, "%s/%s",
+ libxl_xen_script_dir_path(),
nic->script));
flexarray_append(back, "mac");
flexarray_append(back, libxl__sprintf(&gc, "%02x:%02x:%02x:%02x:%02x:%02x",
nic->mac[0], nic->mac[1],
nic->mac[2],
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|