[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 10/34] block: Fix reopen flag inheritance
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH 10/34] block: Fix reopen flag inheritance |
Date: |
Tue, 12 May 2015 08:32:09 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 05/08/2015 11:21 AM, Kevin Wolf wrote:
> When reopening an image, the block layer already takes care to reopen
> bs->file as well with recalculated inherited flags. The same must happen
> for any other child (most notably missing before this patch: backing
> files).
>
> If bs->file (or any other child) didn't originally inherit from bs, e.g.
> because it was created separately and then only referenced, it must not
> inherit flags on reopen either, so check the inherited_from field before
> propagation the reopen down.
>
> VMDK already reopened its extents manually; this code can now be
> dropped.
>
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block.c | 13 +++++++++++--
> block/vmdk.c | 28 ++--------------------------
> 2 files changed, 13 insertions(+), 28 deletions(-)
>
Reviewed-by: Eric Blake <address@hidden>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [Qemu-block] [PATCH 05/34] block: Use macro for cache option names, (continued)
- [Qemu-devel] [PATCH 06/34] block: Use QemuOpts in bdrv_open_common(), Kevin Wolf, 2015/05/08
- [Qemu-devel] [PATCH 09/34] block: Add BlockDriverState.inherits_from, Kevin Wolf, 2015/05/08
- [Qemu-devel] [PATCH 10/34] block: Fix reopen flag inheritance, Kevin Wolf, 2015/05/08
- [Qemu-devel] [PATCH 07/34] block: Move flag inheritance to bdrv_open_inherited(), Kevin Wolf, 2015/05/08
- [Qemu-devel] [PATCH 08/34] block: Add list of children to BlockDriverState, Kevin Wolf, 2015/05/08