mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 08:20:07 +01:00
On native 4k-sector device the old hidden header is not aligned with hw sector size and derect-io access with SEEK_END fails. Let's extend blockwise functions to support a negative offset and use the same logic as normal unaligned writes. Fixes problem mentioned in https://gitlab.com/cryptsetup/cryptsetup/merge_requests/18