mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Replace DEV_SHARED with DEV_OK.
DEV_SHARED is never checked for in device_check.
This commit is contained in:
committed by
Milan Broz
parent
5c0ad86f19
commit
c7d3b7438c
@@ -779,7 +779,7 @@ int TCRYPT_activate(struct crypt_device *cd,
|
||||
dmd.size = hdr->d.volume_size / hdr->d.sector_size;
|
||||
|
||||
if (dmd.flags & CRYPT_ACTIVATE_SHARED)
|
||||
device_check = DEV_SHARED;
|
||||
device_check = DEV_OK;
|
||||
else
|
||||
device_check = DEV_EXCL;
|
||||
|
||||
@@ -800,7 +800,7 @@ int TCRYPT_activate(struct crypt_device *cd,
|
||||
* System encryption use the whole device mapping, there can
|
||||
* be active partitions.
|
||||
*/
|
||||
device_check = DEV_SHARED;
|
||||
device_check = DEV_OK;
|
||||
}
|
||||
|
||||
r = device_block_adjust(cd, dmd.data_device, device_check,
|
||||
|
||||
Reference in New Issue
Block a user