diff --git a/system/syscall_unix.go b/system/syscall_unix.go new file mode 100644 index 0000000..e1b90b3 --- /dev/null +++ b/system/syscall_unix.go @@ -0,0 +1,11 @@ +// +build linux freebsd + +package system + +import "syscall" + +// UnmountWithSyscall is a platform-specific helper function to call +// the unmount syscall. +func UnmountWithSyscall(dest string) { + syscall.Unmount(dest, 0) +} diff --git a/system/syscall_windows.go b/system/syscall_windows.go new file mode 100644 index 0000000..26bd80b --- /dev/null +++ b/system/syscall_windows.go @@ -0,0 +1,6 @@ +package system + +// UnmountWithSyscall is a platform-specific helper function to call +// the unmount syscall. Not supported on Windows +func UnmountWithSyscall(dest string) { +}