Commit d5687e89 authored by Guido Trotter's avatar Guido Trotter
Browse files

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
parent 0d9c53bc
......@@ -122,7 +122,12 @@
The <option>-s</option> option specifies the disk size for
the instance, in gibibytes (defaults to 20 GiB).
the instance, in mebibytes (defaults to
<constant>20480MiB</constant> =
<constant>20GiB</constant>). You can also use one of the
suffixes <literal>m</literal>, <literal>g</literal> or
<literal>t</literal> to specificy the exact the units used;
these suffixes map to mebibytes, gibibytes and tebibytes.
......@@ -106,7 +106,8 @@ import_opts = [
make_option("-n", "--node", dest="node",
help="Target node and optional secondary node",
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="<size>"),
cli_option("--swap-size", dest="swap", help="Swap size",
default=4 * 1024, type="unit", metavar="<size>"),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment