[pkg-cryptsetup-devel] Bug#624828: cryptsetup ignores --size option
Milan Broz
mbroz at redhat.com
Mon May 2 08:31:38 UTC 2011
On 05/01/2011 11:38 PM, RW Penney wrote:
> The '--size' option to cryptsetup is supposed to allow one to choose
> a subset of a block device when configuring an encrypted device-mapper target.
Hm. This is unintended change when switching to new api (internally),
upstream bug. (Moreover that option was not documented properly.)
You can workaround it by subsequent "cryptsetup resize" command for now.
Anyway, I think this is quite confusing option (you cannot specify start offset,
so you can just limit end of device, not the mapped start), for these types
of operation is dmsetup more versatile.
> # Measure size of cryptsetup device:
> dd if=/dev/mapper/cs-test of=/dev/null bs=1b
What about "blockdev --getsize64 /dev/mapper/cs-test" ?
Milan
More information about the pkg-cryptsetup-devel
mailing list