Am 25.05.2016 um 00:25 hat Eric Blake geschrieben: > Another step on our continuing quest to switch to byte-based > interfaces. > > Signed-off-by: Eric Blake <ebl...@redhat.com> > --- > block/raw-posix.c | 37 +++++++++++++++---------------------- > trace-events | 2 +- > 2 files changed, 16 insertions(+), 23 deletions(-) > > diff --git a/block/raw-posix.c b/block/raw-posix.c > index a4f5a1b..bb691f6 100644 > --- a/block/raw-posix.c > +++ b/block/raw-posix.c > @@ -1252,8 +1252,7 @@ static int aio_worker(void *arg) > } > > static int paio_submit_co(BlockDriverState *bs, int fd, > - int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, > - int type) > + int64_t offset, int count, int type)
Removing qiov makes sense if we only want to use the function for write_zeroes and therefore don't need the full power of paio_submit(). I still think that it would be good to convert raw-posix to the (coroutine-based) .bdrv_co_preadv/pwritev and then we will need qiov again. Kevin