mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a1d095199d
Now, every Unmount() call takes a burden to parse the whole nine yards of /proc/self/mountinfo to figure out whether the given mount point is mounted or not (and returns an error in case parsing fails somehow). Instead, let's just call umount() and ignore EINVAL, which results in the same behavior, but much better performance. Note that EINVAL is returned from umount(2) not only in the case when `target` is not mounted, but also for invalid flags. As the flags are hardcoded here, it can't be the case. Signed-off-by: Kir Kolyshkin <kolyshkin@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 |