github.com/scaleoutsean/fusego@v0.0.0-20220224074057-4a6429e46bb8/unmount_std.go (about) 1 // +build !linux 2 3 package fuse 4 5 import ( 6 "os" 7 "syscall" 8 ) 9 10 func unmount(dir string) error { 11 if err := syscall.Unmount(dir, 0); err != nil { 12 return &os.PathError{Op: "unmount", Path: dir, Err: err} 13 } 14 15 return nil 16 }