Updated MountConfig.bazilfuseOptions.
parent
be35ff0dde
commit
b9b5a4f5fc
|
@ -16,6 +16,7 @@ package fuse
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/jacobsa/bazilfuse"
|
"github.com/jacobsa/bazilfuse"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
|
@ -134,12 +135,13 @@ type MountConfig struct {
|
||||||
|
|
||||||
// Convert to mount options to be passed to package bazilfuse.
|
// Convert to mount options to be passed to package bazilfuse.
|
||||||
func (c *MountConfig) bazilfuseOptions() (opts []bazilfuse.MountOption) {
|
func (c *MountConfig) bazilfuseOptions() (opts []bazilfuse.MountOption) {
|
||||||
panic("TODO: Test and support MountConfig.EnableVnodeCaching")
|
// Enable permissions checking in the kernel. See the comments on
|
||||||
|
// InodeAttributes.Mode.
|
||||||
|
opts = append(opts, bazilfuse.SetOption("default_permissions", ""))
|
||||||
|
|
||||||
opts = []bazilfuse.MountOption{
|
// OS X only: set novncache when appropriate.
|
||||||
// Enable permissions checking in the kernel. See the comments on
|
if runtime.GOOS == "darwin" && !c.EnableVnodeCaching {
|
||||||
// InodeAttributes.Mode.
|
opts = append(opts, bazilfuse.SetOption("novncache", ""))
|
||||||
bazilfuse.SetOption("default_permissions", ""),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue