mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 08:20:07 +01:00
Fix copy&paste mistake in exclusive open comment.
This commit is contained in:
@@ -2748,11 +2748,9 @@ static int reencrypt_decrypt_with_datashift_init(struct crypt_device *cd,
|
|||||||
data_shift = params->data_shift << SECTOR_SHIFT;
|
data_shift = params->data_shift << SECTOR_SHIFT;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We must perform data move with exclusive open data device
|
* In offline mode we must perform data move with exclusively opened data
|
||||||
* to exclude another cryptsetup process to colide with
|
* device in order to exclude LUKS2 decryption process and filesystem mount.
|
||||||
* encryption initialization (or mount)
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (name)
|
if (name)
|
||||||
devfd = device_open(cd, crypt_data_device(cd), O_RDWR);
|
devfd = device_open(cd, crypt_data_device(cd), O_RDWR);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user