Add info about reencrytpion in LUKS2 status.

This commit is contained in:
Ondrej Kozina
2019-06-24 17:45:46 +02:00
committed by Milan Broz
parent 292a5f50b2
commit 6851535fe7

View File

@@ -669,6 +669,7 @@ out:
static int action_status(void)
{
crypt_status_info ci;
crypt_reencrypt_info ri;
struct crypt_active_device cad;
struct crypt_params_integrity ip = {};
struct crypt_device *cd = NULL;
@@ -711,6 +712,10 @@ static int action_status(void)
if (!crypt_get_cipher(cd))
goto out;
ri = crypt_reencrypt_status(cd, NULL);
if (ri > CRYPT_REENCRYPT_NONE && ri < CRYPT_REENCRYPT_INVALID)
log_std(" reencryption: in-progress\n");
r = crypt_get_active_device(cd, action_argv[0], &cad);
if (r < 0)
goto out;