Switch to use unit suffix for --reduce-device-size option.
[platform/upstream/cryptsetup.git] / man / cryptsetup-reencrypt.8
index a32315f..d9a3202 100644 (file)
@@ -108,9 +108,23 @@ Use re-encryption block size of <value> in MiB.
 
 Values can be between 1 and 64 MiB.
 .TP
-.B "\-\-reduce-device-size \fInumber of 512 bytes sectors\fR"
-Enlarge data offset for specified value of sectors by shrinking
-device size.
+.B "\-\-device-size \fIsize[units]\fR"
+Instead of real device size, use specified value.
+
+It means that only specified area (from the start of the device
+to the specified size) will be reencrypted.
+
+WARNING: This is destructive operation.
+
+If no unit suffix is specified, the size is in bytes.
+
+Unit suffix can be S for 512 byte sectors, K/M/G/T (or KiB,MiB,GiB,TiB)
+for units with 1024 base or KB/MB/GB/TB for 1000 base (SI scale).
+
+WARNING: This is destructive operation.
+.TP
+.B "\-\-reduce-device-size \fIsize[units]\fR"
+Enlarge data offset to specified value by shrinking device size.
 
 This means that last sectors on the original device will be lost,
 ciphertext data will be effectively shifted by specified
@@ -119,6 +133,8 @@ number of sectors.
 It can be usefull if you e.g. added some space to underlying
 partition (so last sectors contains no data).
 
+For units suffix see \-\-device-size parameter description.
+
 WARNING: This is destructive operation and cannot be reverted.
 Use with extreme care - shrinked filesystems are usually unrecoverable.