Use union in dm (crypt/verity) query structure.

This commit is contained in:
Milan Broz
2012-06-08 08:58:35 +02:00
parent c35839afbc
commit b016e65daa
6 changed files with 121 additions and 88 deletions

View File

@@ -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;