diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-10-03 13:35:14 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-10-03 18:03:09 +0200 |
commit | 4a44d7bbc68ff3e363e6c166a588474cbd6c20f8 (patch) | |
tree | 05527f5ad13ba290127c5db1e516a3298b7dda1c /doc/guix.texi | |
parent | 882383a9aa5fbeef6f29d359a786a6db7c9e03db (diff) | |
download | guix-4a44d7bbc68ff3e363e6c166a588474cbd6c20f8.tar.gz |
ui: Recognize the same size units as Coreutils.
* guix/ui.scm (size->number): Add a bunch of large units. Recognize one-letter unit names. Change "KB" to "kB". * tests/ui.scm ("size->number, 1T"): New test. * doc/guix.texi (Invoking guix gc): Add cross-reference to "Block size" in the Coreutils manual. (Invoking guix system): Likewise.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r-- | doc/guix.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 57806cebe1..5e8f8e6eb5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -1142,7 +1142,8 @@ specified. When @var{min} is given, stop once @var{min} bytes have been collected. @var{min} may be a number of bytes, or it may include a unit as a -suffix, such as @code{MiB} for mebibytes and @code{GB} for gigabytes. +suffix, such as @code{MiB} for mebibytes and @code{GB} for gigabytes +(@pxref{Block size, size specifications,, coreutils, GNU Coreutils}). When @var{min} is omitted, collect all the garbage. @@ -3822,8 +3823,8 @@ This works as per @command{guix build} (@pxref{Invoking guix build}). @item --image-size=@var{size} For the @code{vm-image} and @code{disk-image} actions, create an image of the given @var{size}. @var{size} may be a number of bytes, or it may -include a unit as a suffix, such as @code{MiB} for mebibytes and -@code{GB} for gigabytes. +include a unit as a suffix (@pxref{Block size, size specifications,, +coreutils, GNU Coreutils}). @end table Note that all the actions above, except @code{build} and @code{init}, |