]> git.proxmox.com Git - mirror_qemu.git/commit
block/io: introduce block driver snapshot-access API
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 3 Mar 2022 19:43:43 +0000 (20:43 +0100)
committerHanna Reitz <hreitz@redhat.com>
Mon, 7 Mar 2022 08:33:31 +0000 (09:33 +0100)
commitce14f3b407aef73ed3c6034d2166bb89f4fbd8b5
tree8db90e3852334781391471463224a80ab773afd7
parent3b7ca26bdf1eb1f9703048831d442adbb103069b
block/io: introduce block driver snapshot-access API

Add new block driver handlers and corresponding generic wrappers.
It will be used to allow copy-before-write filter to provide
reach fleecing interface in further commit.

In future this approach may be used to allow reading qcow2 internal
snapshots, for example to export them through NBD.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220303194349.2304213-11-vsementsov@virtuozzo.com>
[hreitz: Rebased on block GS/IO split]
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/io.c
include/block/block_int-common.h
include/block/block_int-io.h