Skip to content

Commit fef9ea1

Browse files
mount: Fuse enable symlink cache (#5766)
1 parent facf29d commit fef9ea1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/fuse/fuse.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ func Serve(v *vfs.VFS, options string, xattrs, ioctl bool) error {
457457
opt.SingleThreaded = false
458458
opt.MaxBackground = 50
459459
opt.EnableLocks = true
460+
opt.EnableSymlinkCaching = conf.FuseOpts.EnableSymlinkCaching
460461
opt.EnableAcl = conf.Format.EnableACL
461462
opt.DontUmask = conf.Format.EnableACL
462463
opt.DisableXAttrs = !xattrs
@@ -534,6 +535,7 @@ func GenFuseOpt(conf *vfs.Config, options string, mt int, noxattr, noacl bool, m
534535
opt.SingleThreaded = mt == 0
535536
opt.MaxBackground = 200
536537
opt.EnableLocks = true
538+
opt.EnableSymlinkCaching = true
537539
opt.DisableXAttrs = noxattr
538540
opt.EnableAcl = !noacl
539541
opt.IgnoreSecurityLabels = false

0 commit comments

Comments
 (0)