mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 08:20:07 +01:00
Add a debug message after crypt_load in error path.
This commit is contained in:
@@ -2882,8 +2882,8 @@ out:
|
|||||||
log_err(cd, _("Failed to resume device %s."), name);
|
log_err(cd, _("Failed to resume device %s."), name);
|
||||||
|
|
||||||
device_release_excl(cd, crypt_data_device(cd));
|
device_release_excl(cd, crypt_data_device(cd));
|
||||||
if (r < 0)
|
if (r < 0 && crypt_load(cd, CRYPT_LUKS2, NULL) < 0)
|
||||||
crypt_load(cd, CRYPT_LUKS2, NULL);
|
log_dbg(cd, "Cannot reload context after failure.");
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
@@ -3090,8 +3090,8 @@ static int reencrypt_init(struct crypt_device *cd,
|
|||||||
r = reencrypt_keyslot;
|
r = reencrypt_keyslot;
|
||||||
out:
|
out:
|
||||||
device_release_excl(cd, crypt_data_device(cd));
|
device_release_excl(cd, crypt_data_device(cd));
|
||||||
if (r < 0)
|
if (r < 0 && crypt_load(cd, CRYPT_LUKS2, NULL) < 0)
|
||||||
crypt_load(cd, CRYPT_LUKS2, NULL);
|
log_dbg(cd, "Cannot reload context after failure.");
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user