On Mon, Apr 22, 2019 at 05:58:29PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > We often need to do read/write with buffer, not qiov. Instead of > creating qiov in such cases, let's introduce corresponding helpers. > > Vladimir Sementsov-Ogievskiy (9): > block: introduce byte-based io helpers > block/qcow2: use buffer-based io > block/qcow: use buffer-based io > block/qed: use buffer-based io > block/parallels: use buffer-based io > block/backup: use buffer-based io > block/commit: use buffer-based io > block/stream: use buffer-based io > qemu-img: use buffer-based io > > include/block/block_int.h | 16 ++++++++++++++++ > include/sysemu/block-backend.h | 19 +++++++++++++++++++ > block/backup.c | 14 ++++++-------- > block/commit.c | 5 ++--- > block/parallels.c | 14 ++++++-------- > block/qcow.c | 19 ++++++------------- > block/qcow2.c | 9 ++------- > block/qed-table.c | 12 +++++------- > block/qed.c | 6 ++---- > block/stream.c | 4 +--- > qemu-img.c | 13 ++++--------- > 11 files changed, 69 insertions(+), 62 deletions(-) > > -- > 2.18.0 >
The series LGTM and new helpers could be very useful! Reviewed-by: Stefano Garzarella <sgarz...@redhat.com> Thanks, Stefano