aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 85f0b23..e6c3b5d 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -868,6 +868,14 @@ struct fuse_buf {
* Used if FUSE_BUF_FD_SEEK flag is set.
*/
off_t pos;
+
+ /**
+ * Size of memory pointer
+ *
+ * Used only if mem was internally allocated.
+ * Not used if mem was user-provided.
+ */
+ size_t mem_size;
};
/**
@@ -924,6 +932,7 @@ struct libfuse_version
/* .mem = */ NULL, \
/* .fd = */ -1, \
/* .pos = */ 0, \
+ /* .mem_size = */ 0, \
} } \
} )