kubo/fuse/readonly/mount_unix.go
Juan Batiz-Benet e21b1f662b fuse mount lifecycle fixes
This commit cleans up how mounting was being done.
It now successfully signals when it is properly mounted
and listen to close signals correctly.
2015-01-04 00:47:27 -08:00

15 lines
377 B
Go

// +build linux darwin freebsd
package readonly
import (
core "github.com/jbenet/go-ipfs/core"
mount "github.com/jbenet/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) {
fsys := NewFileSystem(ipfs)
return mount.NewMount(ipfs, fsys, mountpoint)
}