mirror of https://github.com/ethereum/go-ethereum
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.
18 lines
231 B
18 lines
231 B
8 years ago
|
// +build !linux
|
||
|
|
||
|
package fuse
|
||
|
|
||
|
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
|
||
|
}
|