vdi: Replace bdrv_{read,write}() with bdrv_{pread,pwrite}()
authorAlberto Garcia <berto@igalia.com>
Wed, 1 May 2019 18:13:56 +0000 (21:13 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 May 2019 14:45:40 +0000 (16:45 +0200)
commitd4f189713f0cbe9b872ef01f9fc4371dc05ad2c5
tree963a639217beea6ddaa2e0785b37d16e786c5492
parente3b4257d032dede8ffcfe868ffd74bb584842f62
vdi: Replace bdrv_{read,write}() with bdrv_{pread,pwrite}()

There's only a couple of bdrv_read() and bdrv_write() calls left in
the vdi code, and they can be trivially replaced with the byte-based
bdrv_pread() and bdrv_pwrite().

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vdi.c