virtiofsd: add fuse_mbuf_iter API
commitdad157e880416ab3a0e45beaa0e81977516568bc
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Feb 2019 10:30:20 +0000 (28 10:30 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:36 +0000 (23 16:41 +0000)
tree7430e543fd49d1fdc51b50c4a235d63d71c7f700
parente17f7a580e2c599330ad3a6946be615ca2fe97d9
virtiofsd: add fuse_mbuf_iter API

Introduce an API for consuming bytes from a buffer with size checks.
All FUSE operations will be converted to use this safe API instead of
void *inarg.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/buffer.c
tools/virtiofsd/fuse_common.h