mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
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.
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user