Skip to content

Commit 356988d

Browse files
authored
Merge pull request #538 from rfay/20220109_no_sshfs_cache
Don't cache sshfs directory, fixes abiosoft/colima#99
2 parents 5a04229 + e807f2d commit 356988d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/hostagent/mount.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77

88
"github.com/hashicorp/go-multierror"
9+
910
"github.com/lima-vm/lima/pkg/limayaml"
1011
"github.com/lima-vm/lima/pkg/localpathutil"
1112
"github.com/lima-vm/sshocker/pkg/reversesshfs"
@@ -41,7 +42,7 @@ func (a *HostAgent) setupMount(ctx context.Context, m limayaml.Mount) (*mount, e
4142
return nil, err
4243
}
4344
// NOTE: allow_other requires "user_allow_other" in /etc/fuse.conf
44-
sshfsOptions := "allow_other"
45+
sshfsOptions := "allow_other,cache=no"
4546
if *m.SSHFS.FollowSymlinks {
4647
sshfsOptions = sshfsOptions + ",follow_symlinks"
4748
}

0 commit comments

Comments
 (0)