forked from Elara6331/itd
Follow-up to 84c7a33
: added unmount.go
This commit is contained in:
parent
1a1bc30df9
commit
613d33ff4d
15
internal/fusefs/unmount.go
Normal file
15
internal/fusefs/unmount.go
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package fusefs
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "unsafe"
|
||||||
|
"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
|
||||||
|
//go:linkname unmount github.com/hanwen/go-fuse/v2/fuse.unmount
|
||||||
|
func unmount(mountPoint string, opts *fuse.MountOptions) error
|
Loading…
Reference in New Issue
Block a user