diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-05-29 16:36:49 +0100 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2012-05-29 16:36:49 +0100 |
commit | da84f22a257fe46b60c5a9986255bf176bb4695b (patch) | |
tree | b95c678581c124e71d2bf6c755121d81808e64ac /tools/libxl/xl.c | |
parent | cb5ee9d490cd4e6037c64f76debed7a5ccbeb9c9 (diff) | |
download | xen-da84f22a257fe46b60c5a9986255bf176bb4695b.tar.gz xen-da84f22a257fe46b60c5a9986255bf176bb4695b.tar.bz2 xen-da84f22a257fe46b60c5a9986255bf176bb4695b.zip |
xl/libxl: add a blkdev_start parameter
Introduce a blkdev_start in xl.conf and a corresponding string in
libxl_domain_build_info.
Add a blkdev_start parameter to libxl__device_disk_local_attach: it is
going to be used in a following patch.
blkdev_start specifies the first block device to be used for temporary
block device allocations by the toolstack.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r-- | tools/libxl/xl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 69f8737459..492153f29f 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -38,6 +38,7 @@ xentoollog_logger_stdiostream *logger; int dryrun_only; int force_execution; int autoballoon = 1; +char *blkdev_start; char *lockfile; char *default_vifscript = NULL; char *default_bridge = NULL; @@ -94,6 +95,8 @@ static void parse_global_config(const char *configfile, fprintf(stderr, "invalid default output format \"%s\"\n", buf); } } + if (!xlu_cfg_get_string (config, "blkdev_start", &buf, 0)) + blkdev_start = strdup(buf); xlu_cfg_destroy(config); } |