seaweedfs/weed/mount/unmount/unmount_std.go

19 lines
273 B
Go
Raw Normal View History

2022-02-14 11:14:05 +00:00
//go:build !linux && !windows
// +build !linux,!windows
2022-02-11 04:46:53 +00:00
package unmount
import (
"os"
"syscall"
)
func unmount(dir string) error {
err := syscall.Unmount(dir, 0)
if err != nil {
err = &os.PathError{Op: "unmount", Path: dir, Err: err}
return err
}
return nil
}