mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 05:10:03 +01:00
Add info about reencrytpion in LUKS2 status.
This commit is contained in:
committed by
Milan Broz
parent
292a5f50b2
commit
6851535fe7
@@ -669,6 +669,7 @@ out:
|
|||||||
static int action_status(void)
|
static int action_status(void)
|
||||||
{
|
{
|
||||||
crypt_status_info ci;
|
crypt_status_info ci;
|
||||||
|
crypt_reencrypt_info ri;
|
||||||
struct crypt_active_device cad;
|
struct crypt_active_device cad;
|
||||||
struct crypt_params_integrity ip = {};
|
struct crypt_params_integrity ip = {};
|
||||||
struct crypt_device *cd = NULL;
|
struct crypt_device *cd = NULL;
|
||||||
@@ -711,6 +712,10 @@ static int action_status(void)
|
|||||||
if (!crypt_get_cipher(cd))
|
if (!crypt_get_cipher(cd))
|
||||||
goto out;
|
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);
|
r = crypt_get_active_device(cd, action_argv[0], &cad);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user