Repository navigation
Description
Summary
The project describes itself as a "POSIX-compliant FUSE filesystem", but neither FUSE
implementation has Unlink, Rmdir, Rename, Setattr, Statfs, or Fsync. On a live
mount rm, rmdir, mv, chmod, truncate, and df all fail. Correct the claim now,
ahead of the implementation work.
Background
internal/fuse/filesystem.go (the default go-fuse build) implements exactly ten operations:
DirectoryNode: Lookup, Readdir, Mkdir, Create
FileNode: Open, Getattr
FileHandle: Read, Write, Flush, Release
The cgofuse build (internal/fuse/cgofuse_filesystem.go) has fewer still: Mount, Unmount,
IsMounted, Getattr, Open, Read, Write, Release, Readdir.
Missing: Unlink, Rmdir, Rename, Setattr (chmod/chown/truncate/utimens), Statfs,
Fsync, Symlink/Readlink, xattrs, hardlinks.
Getattr also returns synthetic values from config defaults — DefaultMode, DefaultUID,
DefaultGID, and LastModified for all three timestamps — so even if chmod were wired, it
would have nowhere to persist. That is what the v0.14.0 attribute-storage work addresses.
"POSIX-compliant" appears in README.md, CLAUDE.md, and docs/index.md.
Implementation
Replace the compliance claim with an explicit two-part table: operations supported today, and
operations not yet supported. State it as a subset rather than a compliance level, and link
the v0.14.0 milestone for the tracked gap.
Two things to get right:
- Distinguish the two builds. cgofuse supports strictly less than go-fuse; a single table
would overstate the Windows/cgofuse path. - Mark hardlinks as permanently unsupported, not "not yet" — S3 has no such concept and no
implementation is planned.
Also note that internal/filesystem/interface.go already declares the full surface
(Rename, Truncate, Symlink, xattr methods, Statfs); its only implementation is a test
mock. The interface is aspirational today, which is worth a comment there so it is not
mistaken for a working contract.
Acceptance Criteria
- "POSIX-compliant" no longer appears in
README.md,CLAUDE.md, ordocs/index.md - A supported-operations table lists the ten go-fuse operations
- A "Not yet supported" table lists the missing operations and links the v0.14.0 milestone
- The go-fuse and cgofuse differences are distinguished
- Hardlinks are marked permanently unsupported with the reason
-
internal/filesystem/interface.gonotes that only a test mock implements it -
markdownlintpasses (runs in pre-commit)
Dependencies
None. Ships in v0.10.1 deliberately, ahead of the v0.14.0 implementation work, so users are
not misled in the interim.
Activity