From 212a5a8f095de9a1624de6b4a589d60688b02747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Thu, 23 Jan 2014 21:31:36 +0100 Subject: block: Create authorizations mechanism for external snapshot and resize. Signed-off-by: Benoit Canet Signed-off-by: Kevin Wolf --- blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blockdev.c') diff --git a/blockdev.c b/blockdev.c index 2f4065e..32a356e 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1243,7 +1243,7 @@ static void external_snapshot_prepare(BlkTransactionState *common, } } - if (bdrv_check_ext_snapshot(state->old_bs) != EXT_SNAPSHOT_ALLOWED) { + if (!bdrv_is_first_non_filter(state->old_bs)) { error_set(errp, QERR_FEATURE_DISABLED, "snapshot"); return; } -- cgit v1.1