If the backing file is encrypted, 'info block' currently does not report
the disk as encrypted. Fix this by used the standard API to check disk
encryption mode.
Signed-off-by: Jan Kiszka <address@hidden>
---
block.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block.c b/block.c
index 78982f4..82c2016 100644
--- a/block.c
+++ b/block.c
@@ -1056,7 +1056,7 @@ void bdrv_info(void)
}
term_printf(" ro=%d", bs->read_only);
term_printf(" drv=%s", bs->drv->format_name);
- if (bs->encrypted)
+ if (bdrv_is_encrypted(bs))
term_printf(" encrypted");