Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
G
GLib
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 926
    • Issues 926
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 61
    • Merge Requests 61
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • GLib
  • Issues
  • #461

Closed
Open
Opened Oct 07, 2011 by bugzilla-migration@bugzilla-migrationReporter

inotify notification backend doesn't detect early created files in new subdir

Submitted by Alexander Larsson @alexl

Link to original bug (#661162)

Description

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.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/glib#461