aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorMarios Titas2026-08-15 23:03:54 +0300
committerJakob Unterwurzacher2026-09-01 20:51:36 +0200
commit5b2881e7cbc347eb379d35c3ae1f491bef8f227f (patch)
tree7ba317b34cf943c2c9181597668de8a30a0e039c /mount.go
parent9c2130d6c2e54c45c6787fbc49a896a8544a5e47 (diff)
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 <cursoragent@cursor.com>
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go1
1 files changed, 1 insertions, 0 deletions
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