A Go package for implementing a FUSE file system (fork with 'almost' zero-copy read/write)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fusego/unmount_std.go

17 lines
238 B

//go:build !linux
// +build !linux
package fuse
import (
"os"
"syscall"
)
func unmount(dir string) error {
if err := syscall.Unmount(dir, 0); err != nil {
return &os.PathError{Op: "unmount", Path: dir, Err: err}
}
return nil
}