aboutsummaryrefslogtreecommitdiffstats
path: root/example/memfs_ll.cc
diff options
context:
space:
mode:
authorJoanne Koong <joannelkoong@gmail.com>2024-08-23 13:11:09 -0700
committerBernd Schubert <bernd@bsbernd.com>2025-07-16 01:46:09 +0200
commitb507cbc2b1aaec1931642497edcb6723a0d24dc4 (patch)
tree9b7556bbd548d3bee38d2f624876dba977014d45 /example/memfs_ll.cc
parent3be844147764b96496bcae6d92fa4b0e43ebff42 (diff)
downloadlibfuse-b507cbc2b1aaec1931642497edcb6723a0d24dc4.tar.gz
Add statx support
This commit adds libfuse support for FUSE_STATX requests on linux distributions. Currently, statx is only supported on linux. To make the interface a ergonomic as possible (eg using native 'struct statx' vs 'struct fuse_statx'), this implementation gates the 'struct statx' changes by #ifdef linux. Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Diffstat (limited to 'example/memfs_ll.cc')
-rw-r--r--example/memfs_ll.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/memfs_ll.cc b/example/memfs_ll.cc
index b4f0b63..0da7c25 100644
--- a/example/memfs_ll.cc
+++ b/example/memfs_ll.cc
@@ -1094,6 +1094,9 @@ static const struct fuse_lowlevel_ops memfs_oper = {
.copy_file_range = nullptr,
.lseek = nullptr,
.tmpfile = nullptr,
+#ifdef HAVE_STATX
+ .statx = nullptr,
+#endif
};
int main(int argc, char *argv[])