[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 6/7] commit: remove unused check
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v4 6/7] commit: remove unused check |
Date: |
Mon, 30 Sep 2013 14:17:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
Il 30/09/2013 14:02, Fam Zheng ha scritto:
> We support top == active for commit now, remove the check which is dead
> code now.
>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> block/commit.c | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/block/commit.c b/block/commit.c
> index ac4b7cc..086f8c9 100644
> --- a/block/commit.c
> +++ b/block/commit.c
> @@ -198,13 +198,6 @@ void commit_start(BlockDriverState *bs, BlockDriverState
> *base,
> return;
> }
>
> - /* Once we support top == active layer, remove this check */
> - if (top == bs) {
> - error_setg(errp,
> - "Top image as the active layer is currently unsupported");
> - return;
> - }
> -
> if (top == base) {
> error_setg(errp, "Invalid files for merge: top and base are the
> same");
> return;
>
Perhaps this could even become an assertion, or it could take care of
calling commit_active_start?
Paolo
- [Qemu-devel] [PATCH v4 0/7] block: allow commit active as top, Fam Zheng, 2013/09/30
- [Qemu-devel] [PATCH v4 1/7] block: add bdrv_common_ancestor(), Fam Zheng, 2013/09/30
- [Qemu-devel] [PATCH v4 2/7] qmp: add internal sync mode "common" to mirror_start, Fam Zheng, 2013/09/30
- [Qemu-devel] [PATCH v4 3/7] mirror: don't close target, Fam Zheng, 2013/09/30
- [Qemu-devel] [PATCH v4 4/7] mirror: Add commit_job_type to perform commit with mirror code, Fam Zheng, 2013/09/30
- [Qemu-devel] [PATCH v4 5/7] commit: support commit active layer, Fam Zheng, 2013/09/30
- [Qemu-devel] [PATCH v4 6/7] commit: remove unused check, Fam Zheng, 2013/09/30
- Re: [Qemu-devel] [PATCH v4 6/7] commit: remove unused check,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v4 7/7] qemu-iotests: update test cases for commit active, Fam Zheng, 2013/09/30