Milan Broz
0eaaa4553e
Fix handling of too long label and subsystem fields
...
These LUKS2 labels are stored in the binary header area that has limited size.
While we have been silently truncating strings here, it is something that
is not expected, as the final label is then different than expected.
Let's fix the code to explicitly print and return error here.
Also remove the comment about duplicate check. It is incorrect optimization,
as some users will expect a real write on disk, we should no skip it.
Fixes : #958
2025-10-01 21:41:55 +02:00
..
2025-08-29 15:16:36 +02:00
2025-09-11 14:18:39 +02:00
2025-02-16 18:00:20 +00:00
2025-05-22 14:48:56 +02:00
2025-02-16 20:52:37 +01:00
2025-02-16 18:00:20 +00:00
2025-10-01 21:41:55 +02:00
2025-08-08 11:15:32 +02:00
2025-05-20 14:59:09 +02:00
2025-01-27 11:05:08 +00:00
2025-01-15 23:09:36 +01:00
2025-05-22 14:53:12 +02:00
2025-06-23 14:22:13 +02:00
2025-05-20 15:29:14 +02:00
2025-05-22 16:09:50 +02:00
2025-01-15 23:09:36 +01:00
2025-05-22 14:53:16 +02:00
2022-08-23 12:06:07 +00:00
2025-05-22 14:48:56 +02:00
2025-05-22 14:53:12 +02:00
2023-07-17 13:14:52 +02:00
2023-07-17 13:14:52 +02:00
2025-01-27 11:05:08 +00:00
2025-01-15 23:09:36 +01:00
2025-06-22 09:35:18 +02:00
2025-01-15 23:09:36 +01:00
2025-01-27 11:05:08 +00: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-27 11:05:08 +00:00
2025-01-15 23:09:36 +01:00
2025-05-22 14:53:03 +02:00
2025-05-22 14:48:56 +02:00
2025-05-22 14:53:12 +02:00
2025-06-04 14:07:24 +02:00
2025-01-15 23:09:36 +01:00
2025-05-27 14:27:14 +02:00
2025-05-20 15:29:14 +02:00
2025-01-27 11:05:08 +00:00
2025-01-15 23:09:36 +01:00
2025-08-01 12:31:02 +02:00
2025-02-16 18:00:20 +00:00
2025-02-16 18:00:20 +00:00
2025-01-15 23:09:36 +01:00
2025-08-01 16:48:08 +02:00
2025-01-15 23:09:36 +01:00
2025-03-06 17:17:36 +01:00