Skip to content

Research: macOS FSKit as the long-term replacement for macFUSE #189

Open

Description

@scttfrdmn

Summary

Track macOS FSKit as the strategically correct answer to the macFUSE dependency, and research what a Go project would have to do to use it. FSKit is Apple's supported framework for implementing filesystems in userspace, with no kernel extension — which is the thing macFUSE requires and that Apple has been progressively restricting.

Research and tracking only. There is a hard blocker (below) that makes implementation infeasible today.

The blocker

FSKit is Swift/Objective-C only. There are no Go bindings, and none exist to write against.

It is not a C API that cgo can call. It is an Objective-C/Swift framework built around FSUnaryFileSystem, FSVolume, FSItem, and a set of delegate protocols — subclassing and protocol conformance, not function calls. Reaching it from Go means one of:

  1. A Swift/ObjC shim binary that implements the FSKit protocols and talks to a Go process over IPC (XPC, a Unix socket, or shared memory). The Go side keeps internal/vfs; the Swift side is a thin protocol adapter. Two languages, two build systems, and an IPC boundary on the data path.
  2. cgo against a hand-written ObjC bridge, exporting each FSKit callback as a C function that calls back into Go. Possible in principle; the memory-management and threading contracts across the ObjC/Go boundary are where this gets unpleasant, and Go's runtime does not love being called from arbitrary ObjC threads.
  3. Wait for a community binding. Not a plan, but worth watching — the same problem faces every non-Apple-language filesystem project on macOS, so pressure exists.

Option 1 is the realistic one, and it is a substantial project: a signed, notarized, distributed Swift component plus an IPC protocol, and IPC on the read path has performance implications that would need measuring before committing.

Why track it anyway

The macFUSE dependency is a real and growing problem for this project's audience. macOS requires macFUSE (brew install --cask macfuse), which means an admin install, a security dialog, and on some versions a reboot — a hard blocker on managed institutional Macs, which is much of research computing.

This requirement is not a consequence of the binding choice: go-fuse's darwin mount execs mount_macfuse, and cgofuse needed the same headers. Dropping cgofuse in v0.10.1 changed nothing here. Only FSKit or an NFS loopback (#188) removes the dependency.

FSKit is the option Apple actually supports, and the direction the platform is moving. NFS loopback is available now but trades a kext install for sudo mount and loses semantics (no xattrs, weaker coherence). The two should be decided together.

What the research should establish

  1. FSKit's operation surface versus what ObjectFS needs. Does FSKit express the operations in the README's supported-operations table? Specifically: ranged reads at an offset, the attribute model, directory enumeration with pagination, and fsync-equivalent durability. If FSKit's model is a poor fit for an object-storage-backed filesystem, that settles it regardless of the binding problem.
  2. What the IPC boundary costs. A per-read round trip between a Swift adapter and a Go process, on top of the S3 request that read already makes. Probably in the noise against S3 latency — but "probably" is not a measurement, and a stat storm is a different profile than a large sequential read.
  3. Distribution and signing. An FSKit extension is an app extension: signed, notarized, and delivered inside an app bundle. That is a materially different distribution story from brew install objectfs or a tarball, and it may be the actual deciding constraint rather than the technical one. Worth answering early since it is cheap to answer.
  4. Minimum macOS version. FSKit's availability window, versus what this project's users run. If it requires a very recent macOS, the population that can use it and the population blocked by macFUSE restrictions may not overlap much yet.
  5. Whether anyone has done it. Check for prior art in Go, Rust, or any non-Apple language — a Rust binding would answer most of the ObjC-bridge questions transferably.

Precondition already met

internal/vfs exists as of v0.10.1: POSIX semantics live there, depend on pkg/types.Backend and nothing FUSE, and are testable without a mount. So an FSKit path would be a third shim over one tested core, alongside internal/fuse and any NFS work.

That is what makes this thinkable at all. The cautionary case is the cgofuse build tag removed in v0.10.1: a silently divergent 382-line subset of a 727-line package that never received the Unlink/Rmdir fix, so under that tag rm reported success while the S3 object survived. A second platform binding that reimplements semantics rather than sharing them will diverge, and the divergence will be silent. Any FSKit work must run against the differential-testing oracle, same as the FUSE path.

Deliverable

A comment on this issue answering 1-5, with a recommendation: pursue, wait for a specific trigger, or rule out. Revisit annually or when Apple changes kext policy again — whichever comes first.

Related

Activity

  1. added this to the Future Work milestone on Aug 2, 2026
  2. added
    type: enhancement
    priority: low
    area: fuse
    effort: medium
    on Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: fuseeffort: mediumpriority: lowtype: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions