]> git.proxmox.com Git - mirror_qemu.git/commit - block/cloop.c
cloop: use qemu block API
authorChristoph Hellwig <hch@lst.de>
Tue, 4 May 2010 10:44:52 +0000 (12:44 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:04 +0000 (10:20 +0200)
commit20be49e47e82f1b9fdc33810e1c4d7121871eafa
tree70832a03e99840d1c3bfb9569319eda162506259
parentc94304be3f07fc038f0d8d48ffdca11a28b5aaca
cloop: 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/cloop.c