Merge pull request #17378 from Microsoft/10662-unmountwithsyscall

Windows: Volumes PR rename UnmountWithSyscall
This commit is contained in:
David Calavera 2015-10-26 16:15:00 -07:00
commit 4cbe227db8
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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