aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorMilan Broz <gmazyland@gmail.com>2017-02-15 20:26:02 +0100
committerMilan Broz <gmazyland@gmail.com>2017-02-15 20:26:02 +0100
commit9da67b701da394336a7f6a011a3fc7eb2b6ce84e (patch)
treeb254756c141cf2b87ed367e43e90839cab1bc12f /man
parentef7ecb5567cdfe033314e8564c3639abb2166727 (diff)
downloadcryptsetup-9da67b701da394336a7f6a011a3fc7eb2b6ce84e.tar.gz
Clarify use of --size parameter.
Diffstat (limited to 'man')
-rw-r--r--man/cryptsetup.815
1 files changed, 10 insertions, 5 deletions
diff --git a/man/cryptsetup.8 b/man/cryptsetup.8
index 55ac3b9f..b3cce841 100644
--- a/man/cryptsetup.8
+++ b/man/cryptsetup.8
@@ -107,10 +107,15 @@ Reports the status for the mapping <name>.
.IP
Resizes an active mapping <name>.
-If \-\-size (in sectors) is not specified, the size of the
-underlying block device is used. Note that this does not
-change the raw device geometry, it just changes how many
-sectors of the raw device are represented in the mapped device.
+If \-\-size (in sectors) is not specified, the size is computed
+from the underlying device. For LUKS it is the size of the
+underlying device without the area reserved for LUKS header
+(see data payload offset in \fBluksDump\fR command).
+For plain crypt device the whole device size is used.
+
+Note that this does not change the raw device geometry, it just
+changes how many sectors of the raw device are represented
+in the mapped device.
.SH PLAIN MODE
Plain dm-crypt encrypts the device sector-by-sector with a
single, non-salted hash of the passphrase. No checks
@@ -732,7 +737,7 @@ All other LUKS actions will use the key-size specified in the LUKS header.
Use \fIcryptsetup \-\-help\fR to show the compiled-in defaults.
.TP
.B "\-\-size, \-b <number of 512 byte sectors>"
-Force the size of the underlying device in sectors of 512 bytes.
+Set the size of the device in sectors of 512 bytes.
This option is only relevant for the \fIopen\fR and \fIresize\fR
actions.
.TP