summaryrefslogtreecommitdiffstats
path: root/sys-utils/zramctl.8
diff options
context:
space:
mode:
authorSami Kerola2014-08-02 19:43:42 +0200
committerKarel Zak2014-08-11 13:58:35 +0200
commitef567176b1f0578f2ca97470b47ada677c0086e2 (patch)
tree5da5eff7d5f653a23e57d5582ad06a753ee2a90f /sys-utils/zramctl.8
parentfdisk: update tests and clean up output (diff)
downloadkernel-qcow2-util-linux-ef567176b1f0578f2ca97470b47ada677c0086e2.tar.gz
kernel-qcow2-util-linux-ef567176b1f0578f2ca97470b47ada677c0086e2.tar.xz
kernel-qcow2-util-linux-ef567176b1f0578f2ca97470b47ada677c0086e2.zip
zramctl: add details to --size option documentation
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/zramctl.8')
-rw-r--r--sys-utils/zramctl.811
1 files changed, 9 insertions, 2 deletions
diff --git a/sys-utils/zramctl.8 b/sys-utils/zramctl.8
index 74240a1ca..a30823388 100644
--- a/sys-utils/zramctl.8
+++ b/sys-utils/zramctl.8
@@ -68,8 +68,15 @@ can be changed only after a reset.
.TP
.BR \-s , " \-\-size " \fIsize
Force the zram driver to reread the size of the file associated with
-the specified zram device
-
+the specified zram device. When not specified the
+.I size
+unit is bytes. The zram devices size is page size aligned. When
+requested
+.I size
+does match with page size the device be large enough to hold the reqested
+.I size
+plus length to next page boundary.
+.IP
The \fIsize\fR argument may be followed by the multiplicative suffixes KiB (=1024),
MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB"
is optional, e.g., "K" has the same meaning as "KiB") or the suffixes