Files
zurg/internal/zfs/mount.go
Ben Sarmiento 16505ec33f Big refactor
2023-11-14 01:55:00 +01:00

19 lines
399 B
Go

package zfs
import (
"github.com/debridmediamanager.com/zurg/internal/config"
"github.com/winfsp/cgofuse/fuse"
)
func Mount(host *fuse.FileSystemHost, cfg config.ConfigInterface) error {
host.SetCapCaseInsensitive(false)
host.SetCapReaddirPlus(false)
host.Mount(cfg.GetMountPoint(), []string{})
return nil
}
func Unmount(host *fuse.FileSystemHost) error {
_ = host.Unmount()
return nil
}