diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-10-13 10:31:00 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-10-13 10:31:00 +0100 |
commit | e119b0e2e78763e56f174e08569b38f92337a550 (patch) | |
tree | 105a703b91c3b0827f965e2ed733966c7a181cac /tools | |
parent | 24c1c96371b7442af0843f87ec2b4e668ff208b2 (diff) | |
download | xen-e119b0e2e78763e56f174e08569b38f92337a550.tar.gz xen-e119b0e2e78763e56f174e08569b38f92337a550.tar.bz2 xen-e119b0e2e78763e56f174e08569b38f92337a550.zip |
libxl: probe disk backend type in libxl_device_disk_add
Without this "xl block-attach" does not work. On create do_domain_create already
catches this.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxl/libxl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index bc8af628d8..1748e040a9 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -929,6 +929,9 @@ int libxl_device_disk_add(libxl_ctx *ctx, uint32_t domid, libxl_device_disk *dis rc = libxl__device_disk_set_backend(&gc, disk); if (rc) goto out; + rc = libxl__device_disk_set_backend(&gc, disk); + if (rc) goto out; + front = flexarray_make(16, 1); if (!front) { rc = ERROR_NOMEM; |