You guys are misinterpreting what synchronous mounting means. In early versions of MacFUSE, the mount system call returned success early. After it had validated arguments etc., the kernel part of MacFUSE (the mount processing code, specifically) would launch a thread so that mounting could continue asynchronously. The thread communicated with the user-space part of MacFUSE, whereas the mount system call would return. This caused the Finder (and potentially other apps) to look for the "mounted" volume prematurely, creating confusion. In this context, "synchronous mounting" means the mount system call would actually *fully* finish mounting before returning success.
You guys are merely talking about the foregrounding/backgrounding of the user-space mounting process. By default, the MacFUSE library backgrounds the mounting process. Its parent is welcome to block on mounting-success by listening for the notification (as one of you says you are doing). You can also explicitly tell the library to do this foregrounded (the -f option). Amit On Jul 30, 12:38 am, Erik Larsson <[email protected]> wrote: > Dave Yost wrote: > >http://code.google.com/p/macfuse/wiki/OPTIONS > > says > > Beginning with version 1.0.0, MacFUSE always performs synchronous > > (foreground) > > mounting, so there's no race between the mounting process finishing > > and the Finder > > discovering a MacFUSE volume. > > > This isn't what happens with 2.0.3 on my 10.5.7 system. > > > For me, > > sshfs hostname: mountpoint ; ls mountpoint > > always shows no folder contents because the ls executes before the > > mount completes. > > This is also what I'm experiencing. In my NTFS-3G package I wrote a > separate command line tool, 'fuse_wait', to solve this problem (actually > Paul Marks wrote the first version, but I rewrote it from scratch since > he didn't publish the source > code):http://hem.bredband.net/unsound/ntfs-3g/sources/fuse_wait.c > > It listens to MacFUSE's > 'com.google.filesystems.fusefs.unotifications.mounted' notification for > a specific mount point, and only exits after that notification has been > received. > So instead of 'sshfs hostname: mountpoint' you would use fuse_wait like > this: 'fuse_wait mountpoint 10 sshfs hostname: mountpoint'. The argument > '10' means it waits for the notification maximum 10 seconds before > timing out. > > - Erik (http://macntfs-3g.blogspot.com) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MacFUSE" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/macfuse?hl=en -~----------~----~----~----~------~----~------~--~---
