From 5a44747054926c2683a28392869c4f8603f5e70a Mon Sep 17 00:00:00 2001 From: John Muir Date: Tue, 6 Dec 2011 21:56:34 +0100 Subject: libfuse: Notifying the kernel of deletion. libfuse part to allow a FUSE file-system to tell the kernel when a file or directory is deleted. If the specified dentry has the specified inode number, the kernel will unhash it. Signed-off-by: John Muir Signed-off-by: Miklos Szeredi --- include/fuse_kernel.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/fuse_kernel.h') diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h index 039eb1f..89e941a 100644 --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -79,6 +79,7 @@ * * 7.18 * - add FUSE_IOCTL_DIR flag + * - add FUSE_NOTIFY_DELETE * - add FUSE_MMAP and FUSE_MUNMAP */ @@ -322,6 +323,7 @@ enum fuse_notify_code { FUSE_NOTIFY_INVAL_ENTRY = 3, FUSE_NOTIFY_STORE = 4, FUSE_NOTIFY_RETRIEVE = 5, + FUSE_NOTIFY_DELETE = 6, FUSE_NOTIFY_CODE_MAX, }; @@ -667,6 +669,13 @@ struct fuse_notify_inval_entry_out { __u32 padding; }; +struct fuse_notify_delete_out { + __u64 parent; + __u64 child; + __u32 namelen; + __u32 padding; +}; + struct fuse_notify_store_out { __u64 nodeid; __u64 offset; -- cgit v1.2.3