summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-05-12 16:31:49 +0200
committerKevin Wolf <kwolf@redhat.com>2010-05-17 10:20:05 +0200
commit64a31d5c3d73396a88563d7a504654edc85aa854 (patch)
tree5c829c6d09e17050d2079d1eaed201d5a5346ca6 /linux-user/syscall.c
parent16cdf7ce1a53dcab75f5206a89bf98bb907a8b9e (diff)
downloadfocaccia-qemu-64a31d5c3d73396a88563d7a504654edc85aa854.tar.gz
focaccia-qemu-64a31d5c3d73396a88563d7a504654edc85aa854.zip
dmg: 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.

Dmg actually does an lseek to a negative offset in the open routine,
which we replace with offset arithmetics after doing a bdrv_getlength.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions