parallels: use qemu block API
commit1dec5a70973bde6138d7cf30e98e12a49397abf4
authorChristoph Hellwig <hch@lst.de>
Thu, 6 May 2010 20:04:50 +0000 (6 22:04 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 17 May 2010 08:20:05 +0000 (17 10:20 +0200)
tree656f9a5dd7d03c482d735c115237d37027846320
parent9d8b88f68c4f55e4f706408b39f720e1a7486da1
parallels: 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/parallels.c