From d5687e8976567b2d2c7714cbaf06e76be0a44e3e Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Thu, 10 Jan 2008 11:41:22 +0000 Subject: [PATCH 1/1] Fix gnt-backup import -s option Update gnt-backup import to be in line with gnt-instance add about the os disk size option. Thanks to Gunnar Wagenknecht for spotting the issue. Reviewed-by: imsnah --- man/gnt-backup.sgml | 7 ++++++- scripts/gnt-backup | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/man/gnt-backup.sgml b/man/gnt-backup.sgml index 25f3673..796148d 100644 --- a/man/gnt-backup.sgml +++ b/man/gnt-backup.sgml @@ -122,7 +122,12 @@ The option specifies the disk size for - the instance, in gibibytes (defaults to 20 GiB). + the instance, in mebibytes (defaults to + 20480MiB = + 20GiB). You can also use one of the + suffixes m, g or + t to specificy the exact the units used; + these suffixes map to mebibytes, gibibytes and tebibytes. diff --git a/scripts/gnt-backup b/scripts/gnt-backup index daf7c90..6ad2e70 100755 --- a/scripts/gnt-backup +++ b/scripts/gnt-backup @@ -106,7 +106,8 @@ import_opts = [ make_option("-n", "--node", dest="node", help="Target node and optional secondary node", metavar="[:]"), - cli_option("-s", "--os-size", dest="size", help="Disk size", + cli_option("-s", "--os-size", dest="size", help="Disk size, in MiB unless" + " a suffix is used", default=20 * 1024, type="unit", metavar=""), cli_option("--swap-size", dest="swap", help="Swap size", default=4 * 1024, type="unit", metavar=""), -- 1.7.10.4