Repository navigation
Description
Apologies for the AI report, but the bug is confirmed by manual testing
FSKit backend: mount fails with mount(8) returned 66 when the mount point path contains a space, #, %, ? or non-ASCII characters
Environment
- macOS 26.6.2 (25G83), Apple silicon
- macFUSE 5.3.3 (FSKit backend,
-o backend=fskit) - File system server: rclone v1.73.4 / v1.74.4 (official builds,
cmountvia cgofuse,libfuse.2.dylib) - The same mount succeeds with the kernel backend.
Summary
With the FSKit backend, a volume cannot be mounted on any mount point whose path contains a character that
is percent-encoded in URLs (space, tab, #, %, ?, non-ASCII such as é). The mount service reports
mount(8) returned 66 (EX_NOINPUT). Mount points containing only -, _, ,, +, & work.
The cause appears to be in io.macfuse.app.launchservice.daemon: it passes a percent-encoded form of the
mount point to mount(8), so mount(8) cannot realpath() it. If a directory with the literal encoded
name exists next to the real one, the volume is mounted on that directory instead.
Steps to reproduce
mkdir -p "/Volumes/ava new"
rclone mount some-remote: "/Volumes/ava new" -o backend=fskit -vvOutput:
DEBUG : Mounting with options: ["-o" "attr_timeout=1" ... "-o" "volname=ava new" "-o" "noappledouble" "-o" "backend=fskit"]
MFMount: MFMount(_:_:_:_:): Failed to mount volume: mount(8) returned 66
fuse: mount failed with error: -1
Unified log (log stream --predicate 'process == "io.macfuse.app.launchservice.daemon"'):
[io.macfuse:daemon] Mount volume 1BBABCA8-... on /private/tmp/.../mnt with space
[io.macfuse:daemon] Mount macfuse://1BBABCA8-...
[io.macfuse:daemon] Failed to mount volume 1BBABCA8-...: MFDaemon.MountError.mountCommandFailed(MFDaemon.MountCommandError.status(66))
[io.macfuse:daemon] Failed to advertise server for volume 1BBABCA8-...: MFDaemon.Broker<...>.Error.timeout
The daemon logs the correct path, mount(8) exits 66 about 35 ms later, and fskitd is never contacted
for the mount.
Proof that the path is percent-encoded
mkdir -p "/tmp/x/mnt with space" "/tmp/x/mnt%20with%20space"
rclone mount some-remote: "/tmp/x/mnt with space" -o backend=fskit
mount | grep macfuse
# macfuse://D5E32FDA-... on /tmp/x/mnt%20with%20space (macfuse, nodev, nosuid, noowners, noatime, fskit, mounted by eugene)The volume is mounted on the decoy directory with the literal %20 name, and the file system server then
fails with fuse: failed to create DADiskRef because the mount is not where it expected it.
Characters tested in the mount point
| Result | Characters |
|---|---|
| works | _ - , + & |
| fails | space, tab, #, %, ?, é (non-ASCII) |
This matches the set of characters that URL(fileURLWithPath:) / absoluteString percent-encodes.
Expected behaviour
The mount point should be passed to mount(8) as a plain file system path (e.g. via URL.path or
withUnsafeFileSystemRepresentation), not as the percent-encoded string of a file URL. The kernel backend
handles the same path correctly, and Apple's own FSKit modules mount fine on such paths
(mount -F -t msdos /dev/diskNs1 "/tmp/sp ace" works as an unprivileged user).
Additional notes
- The open-source mount client (
macfuse/mount,Mounter.swift) sends the raw path in the XPC
mountPointstring, so the encoding must happen inside the daemon. - A symlink without special characters pointing to the real directory does not help; the daemon resolves it
before encoding. - After the decoy experiment,
umountof the orphaned volume hung in uninterruptible state for a few
minutes before clearing. - Not related to the FSKit I/O fixes listed for 5.4.0 (small writes,
renamex, write-only reads); the
5.4.0 release notes do not mention this issue.
Activity
bfleischer commentedon Sep 11, 2026
Thanks for the detailed bug report, I really appreciate it. The fix will be included in the upcoming 5.4.1 release.
Eugeny commentedon Oct 20, 2026
Thank you for the fix