Skip to content

Are fuse_mount and fuse3_mount blocking? #440

Answered by billziss-gh
overheadhunter asked this question in Q&A
Discussion options

You must be logged in to vote

Your observation re: fuse_mount is correct. The mountpoint is not ready when this function returns. The mountpoint is created within the fuse_loop (or fuse_loop_mt) functions.

Although I do not remember the full reasons for this, I believe this was necessary because of the differences between the UNIX and Windows mounting approaches.

Looking at the code I realize that there is no reliable indicator that the file system mount point has been created in WinFsp-FUSE. This is because the init call also happens before the actual (in-kernel) file system is created (some of the information gathered by init and subsequent statfs calls, etc. is used to initialize the in-kernel file system).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@overheadhunter
Comment options

@billziss-gh
Comment options

@overheadhunter
Comment options

Answer selected by overheadhunter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants