[dm-crypt] cryptsetup manpage: misleading/imprecise description of --size for resize

G.raud graud at gmx.com
Wed Feb 15 19:14:28 CET 2017


Incriminated part of the cryptsetup manpage:

" If --size (in sectors) is not specified, the size of the
  underlying block device is used. "

In fact the size of the underlying block device is used _to compute_ the
_maximum_ size that can be made available, which in case of LUKS is not
the whole block device space.  The manpage can be misleading to someone
who doesn't know dmcrypt well and wants to resize a LUKS container.  At
least append something like "to compute the maximum available size" or
change to "the whole available space is used" for example.

The maximum size in the case of LUKS is, I think, the size of the block
device minus the offset; this could be additionaly stated in the
manpage.

Thanks


More information about the dm-crypt mailing list