Rename crypt_get/set reenc_context to luks2_reencrypt.

This commit is contained in:
Milan Broz
2020-07-04 12:36:19 +02:00
parent 7319be8dad
commit 8a7f590891
4 changed files with 11 additions and 11 deletions

View File

@@ -662,7 +662,7 @@ int crypt_set_data_device(struct crypt_device *cd, const char *device)
return -EINVAL;
}
if (isLUKS2(cd->type) && crypt_get_reenc_context(cd)) {
if (isLUKS2(cd->type) && crypt_get_luks2_reencrypt(cd)) {
log_err(cd, _("Illegal operation with reencryption in-progress."));
return -EINVAL;
}
@@ -5533,13 +5533,13 @@ void *crypt_get_hdr(struct crypt_device *cd, const char *type)
}
/* internal only */
struct luks2_reenc_context *crypt_get_reenc_context(struct crypt_device *cd)
struct luks2_reenc_context *crypt_get_luks2_reencrypt(struct crypt_device *cd)
{
return cd->u.luks2.rh;
}
/* internal only */
void crypt_set_reenc_context(struct crypt_device *cd, struct luks2_reenc_context *rh)
void crypt_set_luks2_reencrypt(struct crypt_device *cd, struct luks2_reenc_context *rh)
{
cd->u.luks2.rh = rh;
}