]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Implement .bdrv_co_pwritev()
authorKevin Wolf <kwolf@redhat.com>
Wed, 1 Jun 2016 14:55:05 +0000 (16:55 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 16 Jun 2016 13:19:55 +0000 (15:19 +0200)
commitd46a0bb24d6061c1eadcf1136fa73dc7c4ac267d
treec6bd837ba2b8b703a714c898838efa0c25340c4f
parent8556739355d2a5392334c237486e32bd0f24c227
qcow2: Implement .bdrv_co_pwritev()

This changes qcow2 to implement the byte-based .bdrv_co_pwritev
interface rather than the sector-based old one.

As preallocation uses the same allocation function as normal writes, and
the interface of that function needs to be changed, it is converted in
the same patch.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h
trace-events