Skip to content

Commit b80a4d2

Browse files
committed
Don't cache sshfs directory, fixes abiosoft/colima#99
Signed-off-by: Randy Fay <[email protected]>
1 parent 2d0feb5 commit b80a4d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/hostagent/mount.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package hostagent
33
import (
44
"context"
55
"fmt"
6+
"github.com/hashicorp/go-multierror"
67
"os"
78

8-
"github.com/hashicorp/go-multierror"
99
"github.com/lima-vm/lima/pkg/limayaml"
1010
"github.com/lima-vm/lima/pkg/localpathutil"
1111
"github.com/lima-vm/sshocker/pkg/reversesshfs"
@@ -41,7 +41,7 @@ func (a *HostAgent) setupMount(ctx context.Context, m limayaml.Mount) (*mount, e
4141
return nil, err
4242
}
4343
// NOTE: allow_other requires "user_allow_other" in /etc/fuse.conf
44-
sshfsOptions := "allow_other"
44+
sshfsOptions := "allow_other,cache=no"
4545
if *m.SSHFS.FollowSymlinks {
4646
sshfsOptions = sshfsOptions + ",follow_symlinks"
4747
}

0 commit comments

Comments
 (0)