[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6698] monitor: Report encrypted disks in snapshot mode (Ja
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6698] monitor: Report encrypted disks in snapshot mode (Jan Kiszka) |
Date: |
Thu, 05 Mar 2009 19:42:37 +0000 |
Revision: 6698
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6698
Author: aliguori
Date: 2009-03-05 19:42:36 +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:
--------------
branches/stable_0_10_0/block.c
Modified: branches/stable_0_10_0/block.c
===================================================================
--- branches/stable_0_10_0/block.c 2009-03-05 19:42:30 UTC (rev 6697)
+++ branches/stable_0_10_0/block.c 2009-03-05 19:42:36 UTC (rev 6698)
@@ -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]");
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6698] monitor: Report encrypted disks in snapshot mode (Jan Kiszka),
Anthony Liguori <=