diff options
| author | Marios Titas | 2026-08-15 23:03:54 +0300 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-09-01 20:51:36 +0200 |
| commit | 5b2881e7cbc347eb379d35c3ae1f491bef8f227f (patch) | |
| tree | 7ba317b34cf943c2c9181597668de8a30a0e039c /mount.go | |
| parent | 9c2130d6c2e54c45c6787fbc49a896a8544a5e47 (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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
