Mark formats that cannot be probed with 100% reliability (just raw). This is necessary to implement change-blockdev.
Signed-off-by: Anthony Liguori <aligu...@us.ibm.com> --- 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