Merge pull request #17628 from LK4D4/umount_log_err
Log error from unmountVolumes on cleanup
This commit is contained in:
commit
4ceddc01e6
2 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,6 @@ import "syscall"
|
||||||
|
|
||||||
// Unmount is a platform-specific helper function to call
|
// Unmount is a platform-specific helper function to call
|
||||||
// the unmount syscall.
|
// the unmount syscall.
|
||||||
func Unmount(dest string) {
|
func Unmount(dest string) error {
|
||||||
syscall.Unmount(dest, 0)
|
return syscall.Unmount(dest, 0)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,5 +2,6 @@ package system
|
||||||
|
|
||||||
// Unmount is a platform-specific helper function to call
|
// Unmount is a platform-specific helper function to call
|
||||||
// the unmount syscall. Not supported on Windows
|
// the unmount syscall. Not supported on Windows
|
||||||
func Unmount(dest string) {
|
func Unmount(dest string) error {
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue