Skip to content
  • Christoph Hellwig's avatar
    dmg: use qemu block API · 64a31d5c
    Christoph Hellwig authored
    
    
    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: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    64a31d5c