dd21087660
When a recursive unmount fails, don't bother parsing the mount table to check if what we expected to be a mountpoint is still mounted. `EINVAL` is returned when you try to unmount something that is not a mountpoint, the other cases of `EINVAL` would not apply here unless everything is just wrong. Parsing the mount table over and over is relatively expensive, especially in the code path that it's in. Signed-off-by: Brian Goff <cpuguy83@gmail.com> |
||
---|---|---|
.. | ||
flags.go | ||
flags_freebsd.go | ||
flags_linux.go | ||
flags_unsupported.go | ||
mount.go | ||
mount_unix_test.go | ||
mounter_freebsd.go | ||
mounter_linux.go | ||
mounter_linux_test.go | ||
mounter_unsupported.go | ||
mountinfo.go | ||
mountinfo_freebsd.go | ||
mountinfo_linux.go | ||
mountinfo_linux_test.go | ||
mountinfo_unsupported.go | ||
mountinfo_windows.go | ||
sharedsubtree_linux.go | ||
sharedsubtree_linux_test.go |