Autodetect optimal encryption sector size on LUKS2 format.

This commit is contained in:
Ondrej Kozina
2021-02-05 18:13:26 +01:00
parent 1aeb0a1f6e
commit 8d0e90b90a
10 changed files with 138 additions and 20 deletions

View File

@@ -599,7 +599,7 @@ struct crypt_params_luks2 {
const struct crypt_params_integrity *integrity_params; /**< Data integrity parameters or @e NULL*/
size_t data_alignment; /**< data area alignment in 512B sectors, data offset is multiple of this */
const char *data_device; /**< detached encrypted data device or @e NULL */
uint32_t sector_size; /**< encryption sector size */
uint32_t sector_size; /**< encryption sector size, 0 triggers auto-detection for optimal encryption sector size */
const char *label; /**< header label or @e NULL*/
const char *subsystem; /**< header subsystem label or @e NULL*/
};