GNOME Bugzilla – Bug 661162
inotify notification backend doesn't detect early created files in new subdir
Last modified: 2018-05-24 13:26:19 UTC
If you do rm -rf /tmp/noexist/ gvfs-monitor-dir /tmp/noexist and then in another shell: mkdir /tmp/noexist; mkdir /tmp/noexist/subdir Then the monitor will only detect the creation of the noexist dir. However if you instead do: mkdir /tmp/noexist; sleep 10; mkdir /tmp/noexist/subdir Then it will also detect the creation of subdir. This is a race in the handling of non-existing directories. If we suddenly detect that the directory exists, then we need to readdir it after we have created an inotify monitor for it, since things could have been added to it before we created the monitor.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/461.