Skip to content

Multi-protocol (SMB, later NFS) file server over the vfs core #181

Open

Description

@scttfrdmn

Refiled from MULTI_PROTOCOL_ROADMAP.md, which is deleted in v0.10.1. Per CLAUDE.md, roadmaps live on GitHub rather than as checked-in markdown; the file also asserted a current version (v0.2.0) and scheduled its four phases against v0.3.0–v0.6.0, all of which shipped without any of this work, so the document had become a schedule for the past.

The proposal

Serve the same S3 data over SMB (and eventually NFS) alongside FUSE, so Windows-first and mixed environments can use ObjectFS without a FUSE binding. Four phases in the original: extract a protocol-agnostic filesystem interface; a basic SMB server over it; enterprise SMB (AD/LDAP auth, ACL mapping, encryption, DFS); then multi-protocol optimization. The core claim is that the S3 backend, cache, and cost optimization need no changes — only the layer above them does.

What is already true, and what changed under it

The abstraction the original Phase 1 called for exists: internal/filesystem/interface.go declares FilesystemInterface with the operations the roadmap's sketch listed (Open, Read, Write, ReadDir, Mkdir, Stat, Chmod, Chown, plus Rename, Truncate, Symlink, xattrs, and Statfs). Its only implementation is a test mock. So Phase 1 is not "refactor toward an interface" — the interface is written and unimplemented, which is a different and smaller task than the roadmap assumed, and also a warning: an interface with no real implementation has never been constrained by one.

Two things the original did not account for:

  • v0.10.1 extracted internal/vfs as the POSIX-semantics core — attribute model, handle table, dirty ranges, read-modify-write — deliberately depending on nothing FUSE and testable without a mount. That is the layer a second protocol handler would bind to. The roadmap's MultiProtocolServer sketch, which holds an *s3.Backend and a *s3.CostOptimizer directly beside its protocol handlers, is the wrong shape now: protocol handlers should see vfs, not the backend.
  • Windows is explicitly unsupported as of v0.10.1 (cgofuse removed; //go:build linux || darwin on internal/fuse). That does not block this — an SMB server serves Windows clients from a Linux host, which is the actual deployment shape — but it does mean "Windows support" and "SMB support" are now separate questions, and the roadmap conflated them.

Prerequisite: POSIX completeness

An SMB share needs operations ObjectFS does not have. Unlink and Rmdir return EROFS by design today (#163); there is no Rename, and SMB clients rename constantly — Windows Explorer's save-then-rename is the ordinary path for editing a file. Windows also expects working attribute and timestamp semantics, which needs the attribute storage work. This should be sequenced after the POSIX-completeness milestone rather than beside it: an SMB share that cannot rename or delete is not usable by the clients it exists for.

What to strip from the original before doing any of it

  • The market analysis and revenue projections ("$50K-500K annually", "10+ NAS replacement projects per year", "GitHub stars: 5,000+") were unsourced and are not engineering criteria. They are not carried over.
  • "CargoShip 4.6x" in the architecture diagram is one of the fabricated performance figures the v0.10.0 audit removed elsewhere.
  • The competitive comparison table claimed features ObjectFS did not have at the time, in a table whose point was that it did.
  • The success metrics mixed testable ones (SMB throughput within 80% of native; 100+ concurrent connections) with adoption targets. Keep the former.

Open questions before committing to this

  1. Which SMB implementation? The original assumed a smb.Server without naming one. Go's SMB server ecosystem is thin — the mature options are C (Samba, ksmbd in-kernel). Fronting ObjectFS with Samba over a FUSE mount is a deployment recipe available today with no new code, and it should be measured and documented before a Go SMB server is written. If it is adequate, this issue reduces to a deployment guide.
  2. Does running as a privileged service change the threat model? The original noted SMB needs server-level auth and proposed "run ObjectFS as a privileged service." ObjectFS has no authentication or authorization layer of its own — access control is IAM's. A multi-user SMB share means ObjectFS must start making per-user access decisions, which is a substantially larger change than a protocol handler.
  3. Is demand real? The original's own first recommendation was to validate demand before building. That is still the right first step, and it has not been done.

Not scheduled. Filed so the analysis is not lost and so the assumptions above are recorded as assumptions.

Activity

  1. added this to the Future Work milestone on Aug 2, 2026
  2. added
    type: enhancement
    priority: low
    area: core
    effort: xl
    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: coreeffort: xlpriority: lowtype: enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions