aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_utils.c
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2011-06-02 18:46:35 +0100
committerIan Jackson <ian.jackson@eu.citrix.com>2011-06-02 18:46:35 +0100
commit46051f0c1cb7428de174d35246dce315493a7cb7 (patch)
treed18c2ad78ec34051581713caf78b005d015c7969 /tools/libxl/libxl_utils.c
parent3c54832f67875287d159cf72c08f3bd90c144fa3 (diff)
downloadxen-46051f0c1cb7428de174d35246dce315493a7cb7.tar.gz
xen-46051f0c1cb7428de174d35246dce315493a7cb7.tar.bz2
xen-46051f0c1cb7428de174d35246dce315493a7cb7.zip
libxl: disks: rename disk param "unpluggable" to "removable"
This property corresponds to what is called "removable" in xenstore, and is the conventional meaning of "removable": ie, the _media_ can be removed even as the _device_ remains present. "unpluggable" is a misleading name for this. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.c')
-rw-r--r--tools/libxl/libxl_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c
index 68b5a9afeb..b23cf2550b 100644
--- a/tools/libxl/libxl_utils.c
+++ b/tools/libxl/libxl_utils.c
@@ -556,7 +556,7 @@ int libxl_devid_to_device_disk(libxl_ctx *ctx, uint32_t domid,
libxl_string_to_backend(ctx, val, &(disk->backend));
disk->vdev = libxl__xs_read(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/dev", be_path));
val = libxl__xs_read(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/removable", be_path));
- disk->unpluggable = !strcmp(val, "1");
+ disk->removable = !strcmp(val, "1");
val = libxl__xs_read(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/mode", be_path));
disk->readwrite = !!strcmp(val, "w");
val = libxl__xs_read(&gc, XBT_NULL, libxl__sprintf(&gc, "%s/device-type", diskpath));