]> git.proxmox.com Git - mirror_qemu.git/commit
cow: use qemu block API
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Jun 2010 10:06:47 +0000 (12:06 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 15 Jun 2010 07:41:59 +0000 (09:41 +0200)
commit2063392ae5d00a9ea13039f971e2b9e61bd68dbc
tree0bb808e35997b8846a5d59ac8d459e0e20035989
parent893a9cb47c767adfbc22357e33e784e7137392df
cow: use qemu block API

Use bdrv_pwrite to access the backing device instead of pread, and
convert the driver to implementing the bdrv_open method which gives
it an already opened BlockDriverState for the underlying device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/cow.c