inotify.7: Mounting a filesystem on top of a monitored directory causes no event

Reported-by: Nicolas Iooss <Nicolas.Iooss@ssi.gouv.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-04-26 12:31:05 +02:00
parent 792570def1
commit c659c68e19
1 changed files with 8 additions and 0 deletions

View File

@ -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