Windows: Add volume support
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
bf04de9ef4
commit
e0069700ad
2 changed files with 17 additions and 0 deletions
11
system/syscall_unix.go
Normal file
11
system/syscall_unix.go
Normal 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)
|
||||
}
|
6
system/syscall_windows.go
Normal file
6
system/syscall_windows.go
Normal 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) {
|
||||
}
|
Loading…
Reference in a new issue