From e0069700ad941b1320e2c7278aca40b615d08b54 Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 9 Sep 2015 19:23:06 -0700 Subject: [PATCH] Windows: Add volume support Signed-off-by: John Howard --- system/syscall_unix.go | 11 +++++++++++ system/syscall_windows.go | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 system/syscall_unix.go create mode 100644 system/syscall_windows.go 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) { +}