Fix gnt-backup import -s option
authorGuido Trotter <ultrotter@google.com>
Thu, 10 Jan 2008 11:41:22 +0000 (11:41 +0000)
committerGuido Trotter <ultrotter@google.com>
Thu, 10 Jan 2008 11:41:22 +0000 (11:41 +0000)
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
scripts/gnt-backup

index 25f3673..796148d 100644 (file)
 
       <para>
         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.
       </para>
 
       <para>
index daf7c90..6ad2e70 100755 (executable)
@@ -106,7 +106,8 @@ import_opts = [
   make_option("-n", "--node", dest="node",
               help="Target node and optional secondary node",
               metavar="<pnode>[:<snode>]"),
-  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>"),