Hi all, Implement statx and syncfs in libfuse so that iomap-compatible fuse servers can receive syncfs commands and provide extended file flags to the kernel. This second piece is critical to being able to enforce the IMMUTABLE and APPEND inode flags. If you're going to start using this code, I strongly recommend pulling from my git trees, which are linked below. With a bit of luck, this should all go splendidly. Comments and questions are, as always, welcome. --D kernel git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=fuse-iomap-attrs --- Commits in this patchset: * libfuse: wire up FUSE_SYNCFS to the low level library * libfuse: add syncfs support to the upper library * libfuse: add statx support to the lower level library * libfuse: add upper level statx hooks --- include/fuse.h | 16 ++++++ include/fuse_lowlevel.h | 53 +++++++++++++++++++++ lib/fuse.c | 120 +++++++++++++++++++++++++++++++++++++++++++++++ lib/fuse_lowlevel.c | 116 +++++++++++++++++++++++++++++++++++++++++++++ lib/fuse_versionscript | 2 + 5 files changed, 307 insertions(+)