containerd/pkg/server
Kir Kolyshkin daeab40b45 os.Unmount: do not consult mountinfo, drop flags
1. Currently, 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.

This also introduces a slight change: in case target does not exist,
the appropriate error (ENOENT) is returned -- document that.

2. As Unmount() is always used with MNT_DETACH flag, let's drop the
flags argument. This way, the only reason of EINVAL returned from
umount(2) can only be "target is not mounted".

3. While at it, remove the 'containerdmount' alias from the package.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-04-30 12:54:10 -07:00
..
io Use github.com/pkg/errors 2018-03-17 02:24:38 +00:00
testing Address comments. 2018-04-09 18:15:09 +00:00
container_attach.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_create_test.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
container_create.go Add RunAsGroup support. 2018-03-30 22:26:07 +00:00
container_exec.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_execsync.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
container_list_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_list.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_log_reopen.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_remove_test.go move links for cri-containerd to cri 2018-03-13 17:06:26 -05:00
container_remove.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
container_start.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_stats_list.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_stats.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_status_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_status.go Address comments for privileged runtime code. 2018-03-23 02:17:46 +00:00
container_stop_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_stop.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
container_update_resources_test.go Update imports 2018-02-08 02:45:44 +00:00
container_update_resources.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
events_test.go Cleanup event backoff. 2018-03-15 18:49:36 +00:00
events.go Fix event monitor panic. 2018-03-27 01:41:35 +00:00
helpers_selinux_test.go Update imports 2018-02-08 02:45:44 +00:00
helpers_test.go Address comments for privileged runtime code. 2018-03-23 02:17:46 +00:00
helpers.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
image_list_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
image_list.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
image_load.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
image_pull_test.go Update imports 2018-02-08 02:45:44 +00:00
image_pull.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
image_remove.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
image_status_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
image_status.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
imagefs_info_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
imagefs_info.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
instrumented_service.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
restart.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
sandbox_list_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
sandbox_list.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
sandbox_portforward.go Fix portforward for host network. 2018-04-17 08:24:44 +00:00
sandbox_remove.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
sandbox_run_test.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
sandbox_run.go os.Unmount: do not consult mountinfo, drop flags 2018-04-30 12:54:10 -07:00
sandbox_status_test.go move links for cri-containerd to cri 2018-03-13 17:06:26 -05:00
sandbox_status.go Address comments for privileged runtime code. 2018-03-23 02:17:46 +00:00
sandbox_stop_test.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
sandbox_stop.go Fix sandbox stop race condition. 2018-04-18 10:12:33 -07:00
service_test.go adds volatile state directory to the fs plan for cntrs/pods/fifo 2018-03-24 00:05:52 +00:00
service.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
snapshots.go Use github.com/pkg/errors 2018-03-17 02:24:38 +00:00
status.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00
streaming.go switches from not CA signed to self CA signed for streaming TLS 2018-04-02 17:50:12 -05:00
update_runtime_config_test.go Address comments. 2018-04-09 18:15:09 +00:00
update_runtime_config.go Address comments. 2018-04-09 18:15:09 +00:00
version.go Rename all variables to remove "cricontainerd". 2018-03-19 21:59:32 +00:00