kubo/fuse/readonly/mount_unix.go
Ho-Sheng Hsiao d90ada9b4e Added fuse allow_other option
ipfs config Mounts.FuseAllowOther --bool true
    ipfs daemon --mount
2015-04-02 15:11:27 -07:00

18 lines
473 B
Go

// +build linux darwin freebsd
// +build !nofuse
package readonly
import (
core "github.com/ipfs/go-ipfs/core"
mount "github.com/ipfs/go-ipfs/fuse/mount"
)
// Mount mounts ipfs at a given location, and returns a mount.Mount instance.
func Mount(ipfs *core.IpfsNode, mountpoint string) (mount.Mount, error) {
cfg := ipfs.Repo.Config()
allow_other := cfg.Mounts.FuseAllowOther
fsys := NewFileSystem(ipfs)
return mount.NewMount(ipfs, fsys, mountpoint, allow_other)
}