Skip to content

Non-blocking mounts are racy -- can return success prematurely #41

@stevebriskin

Description

@stevebriskin

Non-Blocking mounts are mounted via a new thread and a 750ms sleep. It assumes that the thread will complete the mount operation within 750ms, but there's no guarantee of that.

Impact:

  1. The caller may think the mount succeeded whereas it actually failed.
  2. The caller may attempt to read data that's isn't available yet.
  3. The caller may write to the mount directory. This will subsequently cause the fuse mount operation to fail due to the mount point being a non-empty directory.

Can you suggest a work around for detecting whether a mount request has completed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions