A parent-directory watch sees a replacement name while an old inode watch stops tracking the current file.

Inotify reports changes, but it is not a complete history

Inotify delivers Linux filesystem notifications through an instance with registered watches and a readable event queue. Each record identifies a watch, event mask, and possibly a name and move cookie. This can avoid repeatedly checking unchanged paths, but the stream is not an unlimited audit log. Correct consumers interpret notifications as evidence that relevant state may need to be inspected again. ...

October 13, 2027 · 5 min · XB Field Notes