virtiofsd: add definition of fuse_buf_writev()
commit9ceaaa15cf21073c2b23058c374f61c30cd39c31
authorpiaojun <piaojun@huawei.com>
Fri, 16 Aug 2019 03:41:16 +0000 (16 11:41 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (23 16:41 +0000)
tree7642579b9deb97a6407baa86c9da38a9c7ffe60d
parent9b610b09b49b1aada256097b338d49da805da6ae
virtiofsd: add definition of fuse_buf_writev()

Define fuse_buf_writev() which use pwritev and writev to improve io
bandwidth. Especially, the src bufs with 0 size should be skipped as
their mems are not *block_size* aligned which will cause writev failed
in direct io mode.

Signed-off-by: Jun Piao <piaojun@huawei.com>
Suggested-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/buffer.c