Drop duplicite flag in LUKS2 device reload after reencryption.

Reload operation implicictly requires shared flag anyway and it's
added later.
This commit is contained in:
Ondrej Kozina
2019-09-23 14:39:18 +02:00
parent 5f2e8d6062
commit 5628d7d8b5

View File

@@ -3101,7 +3101,7 @@ static int reencrypt_teardown_ok(struct crypt_device *cd, struct luks2_hdr *hdr,
}
if (rh->online) {
r = LUKS2_reload(cd, rh->device_name, rh->vks, rh->device_size, CRYPT_ACTIVATE_KEYRING_KEY | CRYPT_ACTIVATE_SHARED);
r = LUKS2_reload(cd, rh->device_name, rh->vks, rh->device_size, CRYPT_ACTIVATE_KEYRING_KEY);
if (r)
log_err(cd, _("Failed to reload device %s."), rh->device_name);
if (!r) {