diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse_kernel.h | 8 | ||||
-rw-r--r-- | include/fuse_lowlevel.h | 8 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h index 09da620..e0666a1 100644 --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -387,6 +387,12 @@ struct fuse_file_lock { */ #define FUSE_FSYNC_FDATASYNC (1 << 0) +/** + * notify_inval_entry flags + * FUSE_EXPIRE_ONLY + */ +#define FUSE_EXPIRE_ONLY (1 << 0) + enum fuse_opcode { FUSE_LOOKUP = 1, FUSE_FORGET = 2, /* no reply */ @@ -800,7 +806,7 @@ struct fuse_notify_inval_inode_out { struct fuse_notify_inval_entry_out { uint64_t parent; uint32_t namelen; - uint32_t padding; + uint32_t flags; }; struct fuse_notify_delete_out { diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index b76be71..cceb9be 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1675,6 +1675,14 @@ int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino, int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen); +enum fuse_expire_flags { + FUSE_LL_EXPIRE_ONLY = (1 << 0), +}; + +int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent, + const char *name, size_t namelen, + enum fuse_expire_flags flags); + /** * This function behaves like fuse_lowlevel_notify_inval_entry() with * the following additional effect (at least as of Linux kernel 4.8): |