Commit 611da04f authored by Eric Paris's avatar Eric Paris

inotify: send IN_UNMOUNT events

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: default avatarEric Paris <eparis@redhat.com>
parent ff311008
...@@ -90,8 +90,11 @@ static inline __u32 inotify_arg_to_mask(u32 arg) ...@@ -90,8 +90,11 @@ static inline __u32 inotify_arg_to_mask(u32 arg)
{ {
__u32 mask; __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 off the flags used to open the fd */
mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT)); mask |= (arg & (IN_ALL_EVENTS | IN_ONESHOT));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment