[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 4/5] block/io: fix bdrv_is_allocated_above
From: |
Eric Blake |
Subject: |
Re: [PATCH v2 4/5] block/io: fix bdrv_is_allocated_above |
Date: |
Tue, 19 May 2020 15:45:31 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 5/19/20 2:55 PM, Vladimir Sementsov-Ogievskiy wrote:
bdrv_is_allocated_above wrongly handles short backing files: it reports
after-EOF space as UNALLOCATED which is wrong,
You haven't convinced me of that claim.
as on read the data is
generated on the level of short backing file (if all overlays has
unallocated area at that place).
Reusing bdrv_common_block_status_above fixes the issue and unifies code
path.
Unifying the code path is admirable, but I'm not sure we have the
semantics right, yet.
Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
block/io.c | 43 +++++--------------------------------------
1 file changed, 5 insertions(+), 38 deletions(-)
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
[PATCH v2 2/5] block/io: bdrv_common_block_status_above: support include_base, Vladimir Sementsov-Ogievskiy, 2020/05/19
[PATCH v2 3/5] block/io: bdrv_common_block_status_above: support bs == base, Vladimir Sementsov-Ogievskiy, 2020/05/19
[PATCH v2 4/5] block/io: fix bdrv_is_allocated_above, Vladimir Sementsov-Ogievskiy, 2020/05/19
- Re: [PATCH v2 4/5] block/io: fix bdrv_is_allocated_above,
Eric Blake <=
[PATCH v2 5/5] iotests: add commit top->base cases to 274, Vladimir Sementsov-Ogievskiy, 2020/05/19
Re: [PATCH v2 0/5] fix & merge block_status_above and is_allocated_above, Eric Blake, 2020/05/19