Re: [Qemu-devel] [PATCH v5 1/3] block: include base when checking image chain for block allocation

2019-04-25 Thread Alberto Garcia
On Mon 22 Apr 2019 12:18:58 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > * Given an image chain: ... -> [BASE] -> [INTER1] -> [INTER2] -> [TOP] > * > * Return true if (a prefix of) the given range is allocated in any image > - * between BASE and TOP (inclusive). BASE can be NULL to check i

[Qemu-devel] [PATCH v5 1/3] block: include base when checking image chain for block allocation

2019-04-22 Thread Vladimir Sementsov-Ogievskiy
From: Andrey Shinkevich This patch is used in the 'block/stream: introduce a bottom node' that is following. Instead of the base node, the caller may pass the node that has the base as its backing image to the function bdrv_is_allocated_above() with a new parameter include_base = true and get rid