qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 07/19] monitor: Report encrypted disks in snapsho


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH v2 07/19] monitor: Report encrypted disks in snapshot mode
Date: Sat, 21 Feb 2009 19:29:16 +0100
User-agent: StGIT/0.14.2

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 <address@hidden>
---

 block.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/block.c b/block.c
index 78982f4..fe58b89 100644
--- a/block.c
+++ b/block.c
@@ -1056,8 +1056,7 @@ void bdrv_info(void)
            }
             term_printf(" ro=%d", bs->read_only);
             term_printf(" drv=%s", bs->drv->format_name);
-            if (bs->encrypted)
-                term_printf(" encrypted");
+            term_printf(" encrypted=%d", bdrv_is_encrypted(bs));
         } else {
             term_printf(" [not inserted]");
         }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]