From 5b2881e7cbc347eb379d35c3ae1f491bef8f227f Mon Sep 17 00:00:00 2001 From: Marios Titas Date: Sat, 15 Aug 2026 23:03:54 +0300 Subject: cli: use READDIR by default Avoid eager per-entry metadata work for names-only listings, and add -readdirplus for workloads that benefit from eager attributes. Co-authored-by: Cursor --- mount.go | 1 + 1 file changed, 1 insertion(+) (limited to 'mount.go') diff --git a/mount.go b/mount.go index 4b78be7..32a7dd7 100644 --- a/mount.go +++ b/mount.go @@ -390,6 +390,7 @@ func initGoFuse(rootNode fs.InodeEmbedder, args *argContainer) *fuse.Server { // Enable go-fuse warnings fuseOpts.Logger = log.New(os.Stderr, "go-fuse: ", log.Lmicroseconds) fuseOpts.MountOptions = fuse.MountOptions{ + DisableReadDirPlus: !args.readdirplus, // Writes and reads are usually capped at 128kiB on Linux through // the FUSE_MAX_PAGES_PER_REQ kernel constant in fuse_i.h. Our // sync.Pool buffer pools are sized acc. to the default. Users may set -- cgit v1.2.3