mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
inotify: send IN_UNMOUNT events
commit 611da04f7a upstream.
Since the .31 or so notify rewrite inotify has not sent events about
inodes which are unmounted. This patch restores those events.
Signed-off-by: Eric Paris <eparis@redhat.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
02e33709e1
commit
e39ae50950
@@ -106,8 +106,11 @@ static inline __u32 inotify_arg_to_mask(u32 arg)
|
||||
{
|
||||
__u32 mask;
|
||||
|
||||
/* everything should accept their own ignored and cares about children */
|
||||
mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD);
|
||||
/*
|
||||
* everything should accept their own ignored, cares about children,
|
||||
* and should receive events when the inode is unmounted
|
||||
*/
|
||||
mask = (FS_IN_IGNORED | FS_EVENT_ON_CHILD | FS_UNMOUNT);
|
||||
|
||||
/* mask off the flags used to open the fd */
|
||||
mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT));
|
||||
|
||||
Reference in New Issue
Block a user