Skip to content

Commit

Permalink
UnmountAll is a no-op for missing mount points
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
  • Loading branch information
gabriel-samfira committed May 30, 2023
1 parent acff3ee commit 8dd1628
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mount/mount_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ func UnmountAll(mount string, flags int) error {
// This isn't an error, per the EINVAL handling in the Linux version
return nil
}
if _, err := os.Stat(mount); os.IsNotExist(err) {
return nil
}

return Unmount(mount, flags)
}
Expand Down

0 comments on commit 8dd1628

Please sign in to comment.