Add helper function to change segment size.

This commit is contained in:
Ondrej Kozina
2023-05-31 15:53:55 +02:00
committed by Milan Broz
parent 5042ec2cd0
commit 2712882aa3
2 changed files with 25 additions and 0 deletions

View File

@@ -341,6 +341,10 @@ uint64_t LUKS2_segment_size(struct luks2_hdr *hdr,
int segment,
unsigned blockwise);
bool LUKS2_segment_set_size(struct luks2_hdr *hdr,
int segment,
const uint64_t *segment_size_bytes);
int LUKS2_segment_is_type(struct luks2_hdr *hdr,
int segment,
const char *type);