From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzXeG-0000jq-2e for qemu-devel@nongnu.org; Fri, 02 Sep 2011 13:35:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzXe9-000222-HJ for qemu-devel@nongnu.org; Fri, 02 Sep 2011 13:35:18 -0400 Received: from cpe-70-123-132-139.austin.res.rr.com ([70.123.132.139]:35501 helo=localhost6.localdomain6) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzXe9-00021s-BX for qemu-devel@nongnu.org; Fri, 02 Sep 2011 13:35:17 -0400 From: Anthony Liguori Date: Fri, 2 Sep 2011 12:34:49 -0500 Message-Id: <1314984898-19141-7-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1314984898-19141-1-git-send-email-aliguori@us.ibm.com> References: <1314984898-19141-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 06/15] block: add unsafe_probe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori , Michael Roth , Luiz Capitulino Mark formats that cannot be probed with 100% reliability (just raw). This is necessary to implement change-blockdev. Signed-off-by: Anthony Liguori --- 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