mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Use union in dm (crypt/verity) query structure.
This commit is contained in:
@@ -58,14 +58,17 @@ static int setup_mapping(const char *cipher, const char *name,
|
||||
{
|
||||
int device_sector_size = sector_size_for_device(device);
|
||||
struct crypt_dm_active_device dmd = {
|
||||
.device = device,
|
||||
.cipher = cipher,
|
||||
.target = DM_CRYPT,
|
||||
.uuid = NULL,
|
||||
.vk = vk,
|
||||
.offset = sector,
|
||||
.iv_offset = 0,
|
||||
.size = 0,
|
||||
.flags = 0
|
||||
.flags = 0,
|
||||
.u.crypt = {
|
||||
.device = device,
|
||||
.cipher = cipher,
|
||||
.vk = vk,
|
||||
.offset = sector,
|
||||
.iv_offset = 0,
|
||||
}
|
||||
};
|
||||
|
||||
dmd.flags = CRYPT_ACTIVATE_PRIVATE;
|
||||
|
||||
Reference in New Issue
Block a user