Add crypt_reencrypt_run superseding now deprecated crypt_reencrypt.

This reverts commit 367cb7a761
and retains original crypt_reencrypt() symbol marked as deprecated
in favour of new crypt_reencrypt_run(). This makes cryptsetup 2.4.0
release fully backward compatible.
This commit is contained in:
Ondrej Kozina
2021-07-22 12:45:56 +02:00
parent 82816cb52f
commit 06f132066b
5 changed files with 45 additions and 32 deletions

View File

@@ -3424,7 +3424,7 @@ static int action_reencrypt(void)
if (r >= 0 && !ARG_SET(OPT_INIT_ONLY_ID)) {
set_int_handler(0);
r = crypt_reencrypt(cd, tools_reencrypt_progress, &prog_parms);
r = crypt_reencrypt_run(cd, tools_reencrypt_progress, &prog_parms);
}
out:
crypt_free(cd);