Skip to content

Fix data segment length compensation on misaligned partitions.

While properly calculated data segment needed compensation due to misaligned partition (locking range had to be truncated), we passed wrong value (original partition size) to LUKS2 metadata.

It has to use calculated locking range length in bytes.

Fixes: #873 (closed).

Merge request reports