Files
cryptsetup/lib/luks2
Ondrej Kozina cb0f568932 Optimize LUKS2 metadata writes.
LUKS2 supports several jsom area length configurations. With
the largest size supported in megabytes we do not want to write full
metadata area unconditionaly (current code) with every metadata
update. This might generate noticeble overhead with LUKS2
reencryption.

With this patch we write only the real used json area
length plus necessary padding to overwrite remaining previous
metadata stored on the disk.

During LUKS2 format and LUKS2 autorecovery we always overwrite
whole json metadata area no matter the used size.
2025-03-07 15:44:41 +01:00
..
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-03-07 15:44:41 +01:00