From 47cb9b0ee2180cd744367a3662b08577a5eef412 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Mon, 27 Jun 2022 15:17:21 +0200 Subject: [PATCH] Fix copy&paste mistake in exclusive open comment. --- lib/luks2/luks2_reencrypt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/luks2/luks2_reencrypt.c b/lib/luks2/luks2_reencrypt.c index 603d4462..0927e749 100644 --- a/lib/luks2/luks2_reencrypt.c +++ b/lib/luks2/luks2_reencrypt.c @@ -2748,11 +2748,9 @@ static int reencrypt_decrypt_with_datashift_init(struct crypt_device *cd, data_shift = params->data_shift << SECTOR_SHIFT; /* - * We must perform data move with exclusive open data device - * to exclude another cryptsetup process to colide with - * encryption initialization (or mount) + * In offline mode we must perform data move with exclusively opened data + * device in order to exclude LUKS2 decryption process and filesystem mount. */ - if (name) devfd = device_open(cd, crypt_data_device(cd), O_RDWR); else