.uuid = crypt_get_uuid(cd),
.size = 0,
.flags = flags,
+ .data_device = crypt_get_device_name(cd),
.u.crypt = {
- .device = crypt_get_device_name(cd),
.cipher = NULL,
.vk = vk,
.offset = crypt_get_data_offset(cd),
};
- r = device_check_and_adjust(cd, dmd.u.crypt.device, DEV_EXCL,
+ r = device_check_and_adjust(cd, dmd.data_device, DEV_EXCL,
&dmd.size, &dmd.u.crypt.offset, &flags);
if (r)
return r;