mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add CRYPT_ACTIVATE_REFRESH flag to activation calls.
The new flag is supposed to refresh (reload) active dm-crypt mapping with new set of activation flags. CRYPT_ACTIVATE_READONLY can not be switched for already active device. The flag is silently ignored for tcrypt, verity and integrity devices. LUKS2 with authenticated encryption support is added in later commit.
This commit is contained in:
committed by
Milan Broz
parent
957b329e94
commit
5c67ca015b
@@ -1336,6 +1336,9 @@ int dm_reload_device(struct crypt_device *cd, const char *name,
|
||||
else
|
||||
return r;
|
||||
|
||||
if (!table_params)
|
||||
return -EINVAL;
|
||||
|
||||
r = _dm_reload_device(cd, name, dmd->data_device, dmd->flags, dmd->size,
|
||||
dmd->target, table_params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user