فهرست منبع

Windows: Volumes PR fix one of Tibors nits

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 9 سال پیش
والد
کامیت
853f2e9952
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 1 1
      daemon/container.go
  2. 2 2
      pkg/system/syscall_unix.go
  3. 2 2
      pkg/system/syscall_windows.go

+ 1 - 1
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 {

+ 2 - 2
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)
 }

+ 2 - 2
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) {
 }