qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [6706] monitor: Report encrypted disks in snapshot mode (Ja


From: Anthony Liguori
Subject: [Qemu-devel] [6706] monitor: Report encrypted disks in snapshot mode (Jan Kiszka)
Date: Thu, 05 Mar 2009 23:00:57 +0000

Revision: 6706
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6706
Author:   aliguori
Date:     2009-03-05 23:00:57 +0000 (Thu, 05 Mar 2009)
Log Message:
-----------
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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    trunk/block.c

Modified: trunk/block.c
===================================================================
--- trunk/block.c       2009-03-05 23:00:53 UTC (rev 6705)
+++ trunk/block.c       2009-03-05 23:00:57 UTC (rev 6706)
@@ -1101,8 +1101,7 @@
            }
             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]