From b507cbc2b1aaec1931642497edcb6723a0d24dc4 Mon Sep 17 00:00:00 2001 From: Joanne Koong Date: Fri, 23 Aug 2024 13:11:09 -0700 Subject: 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 --- example/memfs_ll.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example/memfs_ll.cc') 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[]) -- cgit v1.2.3