Fis status command to display only specific device types.

Cryptsetup, veritysetup and integrity setup should ignore other
device mappings in status command (it should display only
basic type information).
This commit is contained in:
Milan Broz
2019-06-25 15:03:04 +02:00
parent 07df177332
commit 9b5e3797b1
3 changed files with 11 additions and 5 deletions

View File

@@ -707,6 +707,10 @@ static int action_status(void)
log_std(" type: %s\n", crypt_get_type(cd) ?: "n/a");
/* Print only CRYPT type devices */
if (!crypt_get_cipher(cd))
goto out;
r = crypt_get_active_device(cd, action_argv[0], &cad);
if (r < 0)
goto out;