diff options
author | BenoƮt Canet <benoit@irqsave.net> | 2014-01-23 21:31:36 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-01-24 16:07:08 +0100 |
commit | 212a5a8f095de9a1624de6b4a589d60688b02747 (patch) | |
tree | 53ca4f11ef30c1b1b3ef931116e52d5fbb3c8ac3 /blockdev.c | |
parent | 12d3ba821da9f8a039240a8a1bc01e27a12f9c22 (diff) |
block: Create authorizations mechanism for external snapshot and resize.
Signed-off-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index 2f4065e2cd..32a356eadc 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; } |