[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 06/15] block: add unsafe_probe
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 06/15] block: add unsafe_probe |
Date: |
Fri, 2 Sep 2011 12:34:49 -0500 |
Mark formats that cannot be probed with 100% reliability (just raw). This is
necessary to implement change-blockdev.
Signed-off-by: Anthony Liguori <address@hidden>
---
block/raw.c | 2 ++
block_int.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/block/raw.c b/block/raw.c
index 555db4f..5c74bd6 100644
--- a/block/raw.c
+++ b/block/raw.c
@@ -145,6 +145,8 @@ static BlockDriver bdrv_raw = {
.bdrv_create = raw_create,
.create_options = raw_create_options,
.bdrv_has_zero_init = raw_has_zero_init,
+
+ .unsafe_probe = true,
};
static void bdrv_raw_init(void)
diff --git a/block_int.h b/block_int.h
index 8a72b80..f3d9a79 100644
--- a/block_int.h
+++ b/block_int.h
@@ -146,6 +146,8 @@ struct BlockDriver {
*/
int (*bdrv_has_zero_init)(BlockDriverState *bs);
+ bool unsafe_probe;
+
QLIST_ENTRY(BlockDriver) list;
};
--
1.7.4.1
- [Qemu-devel] [PATCH 00/15] Convert commands to QAPI (batch 1) (v2), Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 01/15] error: let error_is_type take a NULL error, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 02/15] qerror: add qerror_report_err() (v2), Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 03/15] qapi: add code generation support for middle mode, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 04/15] qapi: use middle mode in QMP server (v2), Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 05/15] qapi: convert query-name, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 07/15] monitor: expose readline state, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 08/15] qerror: add additional parameter to QERR_DEVICE_ENCRYPTED, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 06/15] block: add unsafe_probe,
Anthony Liguori <=
- [Qemu-devel] [PATCH 09/15] qapi: convert eject (qmp and hmp) to QAPI, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 10/15] qapi: convert block_passwd and add set-blockdev-password, Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 11/15] qapi: add change-vnc-password (v2), Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 12/15] qapi: add change-vnc-listen (v2), Anthony Liguori, 2011/09/02
- [Qemu-devel] [PATCH 13/15] qapi: introduce drive-change (v2), Anthony Liguori, 2011/09/02