diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-05-29 16:36:46 +0100 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-05-29 16:36:46 +0100 |
commit | 6ae77f8afd24bf68a325bbba8a6cf8e09bd4d2ca (patch) | |
tree | c42e0a1ff5adce5492c2fdd2cb7f4a42f2ad4f6c /tools/libxl/libxl_bootloader.c | |
parent | 06c0bc127b521e9cf9f4b9a06e5b1960e38458b6 (diff) | |
download | xen-6ae77f8afd24bf68a325bbba8a6cf8e09bd4d2ca.tar.gz xen-6ae77f8afd24bf68a325bbba8a6cf8e09bd4d2ca.tar.bz2 xen-6ae77f8afd24bf68a325bbba8a6cf8e09bd4d2ca.zip |
libxl: libxl__device_disk_local_attach return a new libxl_device_disk
Introduce a new libxl_device_disk* parameter to
libxl__device_disk_local_attach, the parameter is allocated by the
caller. libxl__device_disk_local_attach is going to fill the new disk
with informations about the new locally attached disk. The new
libxl_device_disk should be passed to libxl__device_disk_local_detach
afterwards.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_bootloader.c')
-rw-r--r-- | tools/libxl/libxl_bootloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_bootloader.c b/tools/libxl/libxl_bootloader.c index 30b012d623..e7959b9034 100644 --- a/tools/libxl/libxl_bootloader.c +++ b/tools/libxl/libxl_bootloader.c @@ -225,7 +225,7 @@ static void bootloader_cleanup(libxl__egc *egc, libxl__bootloader_state *bl) if (bl->outputdir) libxl__remove_directory(gc, bl->outputdir); if (bl->diskpath) { - libxl__device_disk_local_detach(gc, bl->disk); + libxl__device_disk_local_detach(gc, &bl->localdisk); free(bl->diskpath); bl->diskpath = 0; } @@ -344,7 +344,7 @@ void libxl__bootloader_run(libxl__egc *egc, libxl__bootloader_state *bl) goto out; } - bl->diskpath = libxl__device_disk_local_attach(gc, bl->disk); + bl->diskpath = libxl__device_disk_local_attach(gc, bl->disk, &bl->localdisk); if (!bl->diskpath) { rc = ERROR_FAIL; goto out; |