diff options
author | David Vrabel <david.vrabel@citrix.com> | 2013-04-04 17:21:12 +0000 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2013-04-08 17:05:46 +0100 |
commit | 0e6086a7de36e539d54eb82e61cf94e7f5363c02 (patch) | |
tree | d743adbe664687757d05e596bef8c18f78880a08 /tools/libxl/xl.c | |
parent | 48f4af18b3e1e36bf0eda793455ecaea9a316c65 (diff) | |
download | xen-0e6086a7de36e539d54eb82e61cf94e7f5363c02.tar.gz xen-0e6086a7de36e539d54eb82e61cf94e7f5363c02.tar.bz2 xen-0e6086a7de36e539d54eb82e61cf94e7f5363c02.zip |
xl: default autoballoon option to "auto"
In xl.conf, autoballoon="auto" will do the right thing for most
people. Make it the default (instead of "on").
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/xl.c')
-rw-r--r-- | tools/libxl/xl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index ac41fcd294..16cd3f3002 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -38,7 +38,7 @@ xentoollog_logger_stdiostream *logger; int dryrun_only; int force_execution; -int autoballoon = 1; +int autoballoon = -1; char *blkdev_start; int run_hotplug_scripts = 1; char *lockfile; @@ -99,10 +99,12 @@ static void parse_global_config(const char *configfile, else if (!strcmp(buf, "off") || !strcmp(buf, "0")) autoballoon = 0; else if (!strcmp(buf, "auto")) - autoballoon = auto_autoballoon(); + autoballoon = -1; else fprintf(stderr, "invalid autoballoon option"); } + if (autoballoon == -1) + autoballoon = auto_autoballoon(); if (!xlu_cfg_get_long (config, "run_hotplug_scripts", &l, 0)) run_hotplug_scripts = l; |