Commit 430eb509d2d05bd568c1394213fd12cb447467a7
1 parent
d47d13b9
monitor: Report encrypted disks in snapshot mode (Jan Kiszka)
If the backing file is encrypted, 'info block' currently does not report the disk as encrypted. Fix this by using the standard API to check disk encryption mode. Moreover, switch to a canonical output format. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6706 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
2 deletions
block.c
... | ... | @@ -1101,8 +1101,7 @@ void bdrv_info(void) |
1101 | 1101 | } |
1102 | 1102 | term_printf(" ro=%d", bs->read_only); |
1103 | 1103 | term_printf(" drv=%s", bs->drv->format_name); |
1104 | - if (bs->encrypted) | |
1105 | - term_printf(" encrypted"); | |
1104 | + term_printf(" encrypted=%d", bdrv_is_encrypted(bs)); | |
1106 | 1105 | } else { |
1107 | 1106 | term_printf(" [not inserted]"); |
1108 | 1107 | } | ... | ... |