mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Volumes PR fix one of Tibors nits
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
c52fdce2f2
commit
853f2e9952
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
// 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) {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue