qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 04/17] monitor: Report encrypted disks in snapsh


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 04/17] monitor: Report encrypted disks in snapshot mode
Date: Mon, 09 Feb 2009 08:47:03 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Jan Kiszka wrote:
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");

It's a bit more easily parsable if it's in the format encrypted=[1|0].

Regards,

Anthony Liguori

         } else {
             term_printf(" [not inserted]");









reply via email to

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