Windows: Volumes PR rename UnmountWithSyscall
@@ -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 {
@@ -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)
@@ -1,6 +1,6 @@
package system
// the unmount syscall. Not supported on Windows