19 lines
399 B
Go
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
|
|
}
|