mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-15 11:09:06 +08:00
19 lines
252 B
Go
19 lines
252 B
Go
|
//go:build !linux
|
||
|
// +build !linux
|
||
|
|
||
|
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
|
||
|
}
|