From c659c68e197c7c6eb382a33fc6a42879bf7d1525 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 26 Apr 2017 12:31:05 +0200 Subject: [PATCH] inotify.7: Mounting a filesystem on top of a monitored directory causes no event Reported-by: Nicolas Iooss Signed-off-by: Michael Kerrisk --- man7/inotify.7 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man7/inotify.7 b/man7/inotify.7 index b018f1751..1793a495a 100644 --- a/man7/inotify.7 +++ b/man7/inotify.7 @@ -706,6 +706,14 @@ approach is to close the inotify file descriptor, empty the cache, create a new inotify file descriptor, and then re-create watches and cache entries for the objects to be monitored.) + +If a filesystem is mounted on top of a monitored directory, +no event is generated, and no events are generated +for objects immediately under the new mount point. +If the filesystem is subsequently unmounted, +events will subsequently be generated for the directory and +the objects it contains. +.\" .SS Dealing with rename() events As noted above, the .B IN_MOVED_FROM