Windows: Add volume support

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-09-09 19:23:06 -07:00
parent bf04de9ef4
commit e0069700ad
2 changed files with 17 additions and 0 deletions

11
system/syscall_unix.go Normal file
View file

@ -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)
}

View file

@ -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) {
}