Re: [Qemu-devel] [PATCH 3/3 v2] dmg: use qemu block API

2010-05-12 Thread Kevin Wolf
Am 12.05.2010 16:31, schrieb Christoph Hellwig: > 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. > > Dmg actually does an lseek to a negative

[Qemu-devel] [PATCH 3/3 v2] dmg: use qemu block API

2010-05-12 Thread Christoph Hellwig
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. Dmg actually does an lseek to a negative offset in the open routine, which we replace with offset