From 773aa34dfc3c38b8d7988a18334eb611a47dccd7 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 14 Jan 2016 09:23:18 -0800 Subject: [PATCH] Extend write_buf documentation --- include/fuse_lowlevel.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index 3cc9db5..32908cb 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -932,6 +932,11 @@ struct fuse_lowlevel_ops { * kernel supports splicing from the fuse device, then the * data will be made available in pipe for supporting zero * copy data transfer. + * + * buf->count is guaranteed to be one (and thus buf->idx is + * always zero). The write_buf handler must ensure that + * bufv->off is correctly updated (reflecting the number of + * bytes read from bufv->buf[0]). * * Introduced in version 2.9 * -- 2.30.2