On Wed, Feb 12, 2020 at 07:03:24PM +0100, Peter Krempa wrote:
Implement support for the slice of type 'storage' which allows
to set
the offset and size which modifies where qemu should look for the start
of the format container inside the image.
Since slicing is done using the 'raw' driver we need to add another
layer into the blockdev tree if there's any non-raw image format driver
used to access the data.
This patch adds the blockdev integration and setup of the image data so
that we can use the slices for any backing image.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_block.c | 68 +++++++++++++++++++++++++++++++++++++++-
src/qemu/qemu_block.h | 4 +++
src/qemu/qemu_blockjob.c | 1 +
src/qemu/qemu_command.c | 8 +++++
src/qemu/qemu_domain.c | 4 +++
5 files changed, 84 insertions(+), 1 deletion(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano