2023-03-25 22:23:51 +00:00
|
|
|
package fusefs
|
|
|
|
|
|
|
|
import (
|
|
|
|
_ "unsafe"
|
2023-03-25 22:24:46 +00:00
|
|
|
|
2023-03-25 22:23:51 +00:00
|
|
|
"github.com/hanwen/go-fuse/v2/fuse"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Unmount(mountPoint string) error {
|
|
|
|
return unmount(mountPoint, &fuse.MountOptions{DirectMount: false})
|
|
|
|
}
|
|
|
|
|
|
|
|
// Unfortunately, the FUSE library does not export its unmount function,
|
|
|
|
// so this is required until that changes
|
2023-03-25 22:24:46 +00:00
|
|
|
//
|
2023-03-25 22:23:51 +00:00
|
|
|
//go:linkname unmount github.com/hanwen/go-fuse/v2/fuse.unmount
|
|
|
|
func unmount(mountPoint string, opts *fuse.MountOptions) error
|