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 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

