From 853f2e9952b94c52101d69003161b654a7cd4384 Mon Sep 17 00:00:00 2001 From: John Howard Date: Mon, 26 Oct 2015 13:34:49 -0700 Subject: [PATCH] Windows: Volumes PR fix one of Tibors nits Signed-off-by: John Howard --- daemon/container.go | 2 +- pkg/system/syscall_unix.go | 4 ++-- pkg/system/syscall_windows.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/container.go b/daemon/container.go index a6bb4120ef..2cc0ecb3bd 100644 --- a/daemon/container.go +++ b/daemon/container.go @@ -1172,7 +1172,7 @@ func (container *Container) unmountVolumes(forceSyscall bool) error { for _, volumeMount := range volumeMounts { if forceSyscall { - system.UnmountWithSyscall(volumeMount.Destination) + system.Unmount(volumeMount.Destination) } if volumeMount.Volume != nil { diff --git a/pkg/system/syscall_unix.go b/pkg/system/syscall_unix.go index e1b90b38e6..50054765af 100644 --- a/pkg/system/syscall_unix.go +++ b/pkg/system/syscall_unix.go @@ -4,8 +4,8 @@ package system import "syscall" -// UnmountWithSyscall is a platform-specific helper function to call +// Unmount is a platform-specific helper function to call // the unmount syscall. -func UnmountWithSyscall(dest string) { +func Unmount(dest string) { syscall.Unmount(dest, 0) } diff --git a/pkg/system/syscall_windows.go b/pkg/system/syscall_windows.go index 26bd80bd5d..3a3a55b266 100644 --- a/pkg/system/syscall_windows.go +++ b/pkg/system/syscall_windows.go @@ -1,6 +1,6 @@ package system -// UnmountWithSyscall is a platform-specific helper function to call +// Unmount is a platform-specific helper function to call // the unmount syscall. Not supported on Windows -func UnmountWithSyscall(dest string) { +func Unmount(dest string) { }