[Top][All Lists]
[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]");
}
- [Qemu-devel] [PATCH v2 00/19] monitor rework, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 02/19] char-mux: Use separate input buffers, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 04/19] block: Improve bdrv_iterate, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 06/19] monitor: Use reasonable default virtual console size, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 01/19] char: Fix initial reset, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 03/19] block: Polish error handling of brdv_open2, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 05/19] block: Introduce bdrv_get_encrypted_filename, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 09/19] monitor: Simplify password input mode, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 08/19] monitor: Rework early disk password inquiry, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 07/19] monitor: Report encrypted disks in snapshot mode,
Jan Kiszka <=
- [Qemu-devel] [PATCH v2 14/19] monitor: Drop banner hiding, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 11/19] monitor: Rework modal password input, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 19/19] monitor: Pass-through for gdbstub, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 13/19] monitor: Rework terminal management, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 10/19] monitor: Break out readline_show_prompt, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 16/19] monitor: Decouple terminals, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 18/19] monitor: Introduce MONITOR_USE_READLINE flag, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 15/19] monitor: Introduce ReadLineState, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 12/19] monitor: Rework API, Jan Kiszka, 2009/02/21
- [Qemu-devel] [PATCH v2 17/19] monitor: Improve mux'ed console experience, Jan Kiszka, 2009/02/21