diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 11:38:12 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-18 11:38:12 +0100 |
commit | 6cbd479e30dc414af9b892e96412920a753391cd (patch) | |
tree | 77d09683a9a9a87e7f6f3400aa64f594a68d5589 /tools/libxl/xl_cmdtable.c | |
parent | 5b97152a14ab5fc47abb916d26b4490f2c9a7fff (diff) | |
download | xen-6cbd479e30dc414af9b892e96412920a753391cd.tar.gz xen-6cbd479e30dc414af9b892e96412920a753391cd.tar.bz2 xen-6cbd479e30dc414af9b892e96412920a753391cd.zip |
xl: allow scaling suffix on memory sizes in mem-set and mem-max
Allow mem-set and mem-max to take 'b', 'k', 'm', 'g' and 't' as
scaling suffixes for bytes, kilobytes, mega, etc. An unadorned number
is still treated as kilobytes so no existing users should be affected.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdtable.c')
-rw-r--r-- | tools/libxl/xl_cmdtable.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/libxl/xl_cmdtable.c b/tools/libxl/xl_cmdtable.c index 68b8279b92..82cf2ca722 100644 --- a/tools/libxl/xl_cmdtable.c +++ b/tools/libxl/xl_cmdtable.c @@ -110,12 +110,16 @@ struct cmd_spec cmd_table[] = { }, { "mem-max", &main_memmax, - "Set the maximum amount reservation for a domain", + "Set the maximum amount reservation for a domain.\n" + "Units default to kilobytes, but can be suffixed with\n" + "'b' (bytes), 'k' (KB), 'm' (MB), 'g' (GB) or 't' (TB)", "<Domain> <MemKB>", }, { "mem-set", &main_memset, - "Set the current memory usage for a domain", + "Set the current memory usage for a domain.\n" + "Units default to kilobytes, but can be suffixed with\n" + "'b' (bytes), 'k' (KB), 'm' (MB), 'g' (GB) or 't' (TB)", "<Domain> <MemKB>", }, { "button-press", |