diff options
author | Kamala Narasimhan <kamala.narasimhan@citrix.com> | 2011-02-15 19:59:37 +0000 |
---|---|---|
committer | Kamala Narasimhan <kamala.narasimhan@citrix.com> | 2011-02-15 19:59:37 +0000 |
commit | 546a7640451fc359212ba23bc2d6a9497e1ed6d9 (patch) | |
tree | 74ca2514207c377da35f3068557784f4b99526c1 /tools/libxl/libxl_internal.h | |
parent | a7fd96dfbd3cfe5509420c28ec47e8229a773b76 (diff) | |
download | xen-546a7640451fc359212ba23bc2d6a9497e1ed6d9.tar.gz xen-546a7640451fc359212ba23bc2d6a9497e1ed6d9.tar.bz2 xen-546a7640451fc359212ba23bc2d6a9497e1ed6d9.zip |
libxl: disk specification interface change
Currently we pile all the backend and format information pertaining to
disk option in a single enum. This check-in separates the two and
uses two enums, one for disk format and another for disk backend.
This helps clearly differentiate between disk format and backend
within the implementation and also helps cleanup the code in this area
in preparation for the impending parser revamping to be done post 4.1.
Along with separating format and backend, this check-in also removes
unwanted types and renames variables in the disk interface and fixes
the code affected by the interface changes.
In specific, here are the disk interface changes made - In
libxl_device_disk structure physpath was renamed to pdev_path,
virtpath was renamed to vdev, phystype was removed and replaced with
backend and format enums. Also previously a single enum
libxl_disk_phystype held the values for qcow, qcow2, vhd, aio, file,
phy, empty and that got refactored into two enums, libxl_disk_format
to hold unknown, qcow, qcow2, vhd, raw, empty and libxl_disk_backend
to hold unknown, phy, tap and qdisk.
Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_internal.h')
-rw-r--r-- | tools/libxl/libxl_internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 1e277ae5d6..26dffcf717 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -178,8 +178,8 @@ _hidden int libxl__domain_save_device_model(libxl_ctx *ctx, uint32_t domid, int _hidden void libxl__userdata_destroyall(libxl_ctx *ctx, uint32_t domid); /* from xl_device */ -_hidden char *libxl__device_disk_backend_type_of_phystype(libxl_disk_phystype phystype); -_hidden char *libxl__device_disk_string_of_phystype(libxl_disk_phystype phystype); +_hidden char *libxl__device_disk_string_of_backend(libxl_disk_backend backend); +_hidden char *libxl__device_disk_string_of_format(libxl_disk_format format); _hidden int libxl__device_physdisk_major_minor(const char *physpath, int *major, int *minor); _hidden int libxl__device_disk_dev_number(char *virtpath); @@ -306,7 +306,7 @@ _hidden int libxl__blktap_enabled(libxl__gc *gc); */ _hidden const char *libxl__blktap_devpath(libxl__gc *gc, const char *disk, - libxl_disk_phystype phystype); + libxl_disk_format format); _hidden char *libxl__uuid2string(libxl__gc *gc, const libxl_uuid uuid); |