podman/libpod
Valentin Rothberg 6d19ecadc8 inotify: make sure to remove files
Issue #11825 suggests that *rootless* Podman can run into situations
where too many inotify fds are open.  Indeed, rootless Podman has a
slightly higher usage of inotify watchers than the root counterpart
when using slirp4netns

Make sure to not only close all watchers but to also remove the files
from being watched.  Otherwise, the fds only get closed
when the files are removed.

[NO NEW TESTS NEEDED] since we don't have a way to test it.

Fixes: #11825
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-12-09 17:06:21 +01:00
..
common
define libpod, inspect: export cgroup path 2021-11-24 14:50:12 +01:00
driver
events standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
layers
linkmode
lock shm_lock: Handle ENOSPC better in AllocateSemaphore 2021-11-09 18:34:21 +11:00
logs standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
network Fix netavark error handling and teardown issue 2021-11-22 17:49:55 +01:00
plugin
shutdown Fix CI flake on time of shutdown for API service 2021-10-12 09:53:19 -07:00
boltdb_state.go Ensure pod ID bucket is properly updated on rename 2021-09-28 14:12:18 -04:00
boltdb_state_internal.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
boltdb_state_linux.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
common_test.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
container.go container, cgroup: detect pid termination 2021-12-01 13:42:59 +01:00
container_api.go Add --file-locks checkpoint/restore option 2021-11-18 19:23:25 +00:00
container_commit.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
container_config.go Do not store the exit command in container config 2021-11-18 20:28:03 +01:00
container_copy_linux.go Don't use docker/pkg/archive, use containers/storage/pkg/archive 2021-10-14 10:28:42 -04:00
container_exec.go libpod: add execSessionNoCopy 2021-09-29 13:44:55 +02:00
container_graph.go implement init containers in podman 2021-08-04 14:14:36 -05:00
container_graph_test.go
container_inspect.go libpod, inspect: export cgroup path 2021-11-24 14:50:12 +01:00
container_internal.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
container_internal_linux.go Merge pull request #12498 from rhatdan/cgroups 2021-12-07 12:49:57 +00:00
container_internal_linux_test.go feat: add localhost into hosts if the networking mode is not host 2021-09-04 18:24:41 +04:30
container_internal_test.go
container_linux.go
container_log.go logging: new mode -l passthrough 2021-09-27 12:07:01 +02:00
container_log_linux.go Merge pull request #12285 from nalind/journal-follow-not-early 2021-11-15 22:09:29 +01:00
container_log_unsupported.go Switch eventlogger to journald by default 2021-08-23 17:59:42 -04:00
container_path_resolution.go volumes: be more tolerant and fix infinite loop 2021-10-28 16:37:33 +02:00
container_stat_linux.go
container_top_linux.go top: parse ps(1) args correctly 2021-12-01 11:42:37 +01:00
container_validate.go implement init containers in podman 2021-08-04 14:14:36 -05:00
diff.go Implement SD-NOTIFY proxy in conmon 2021-08-20 11:12:05 +02:00
events.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
healthcheck.go sync container state before reading the healthcheck 2021-09-22 17:40:16 +02:00
healthcheck_linux.go
info.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
kube.go Ensure the generated NodePort values are unique 2021-11-30 22:13:52 +01:00
mounts_linux.go
networking_linux.go rootless netns: resolve all path components for resolv.conf 2021-12-06 18:34:14 +01:00
networking_linux_test.go Introduce Address type to be used in secondary IPv4 and IPv6 inspect data 2021-11-18 17:04:49 +01:00
networking_machine.go podman machine improve port forwarding 2021-11-15 15:20:47 +01:00
networking_slirp4netns.go rename libpod nettypes fields 2021-11-16 19:19:04 +01:00
oci.go Added optional container restore statistics 2021-11-15 11:50:25 +00:00
oci_attach_linux.go libpod: fix race when closing STDIN 2021-10-06 17:51:07 +02:00
oci_conmon.go
oci_conmon_exec_linux.go libpod: fix race when closing STDIN 2021-10-06 17:51:07 +02:00
oci_conmon_linux.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
oci_missing.go Added optional container restore statistics 2021-11-15 11:50:25 +00:00
oci_util.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
options.go Make sure netavark output is logged to the syslog 2021-11-19 18:15:53 +01:00
pod.go codespell code 2021-10-12 16:44:25 -04:00
pod_api.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
pod_internal.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
pod_status.go
pod_top_linux.go
reset.go Add --time out for podman * rm -f commands 2021-10-04 07:07:56 -04:00
runtime.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
runtime_cstorage.go Storage can remove ErrNotAContainer as well 2021-09-29 10:12:49 -04:00
runtime_ctr.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
runtime_img.go Add --time out for podman * rm -f commands 2021-10-04 07:07:56 -04:00
runtime_migrate.go standardize logrus messages to upper case 2021-09-22 15:29:34 -04:00
runtime_pod.go Add --time out for podman * rm -f commands 2021-10-04 07:07:56 -04:00
runtime_pod_linux.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
runtime_renumber.go
runtime_volume.go Add --time out for podman * rm -f commands 2021-10-04 07:07:56 -04:00
runtime_volume_linux.go Remove a volume with --force if container is running 2021-10-11 15:02:04 -04:00
state.go
state_test.go libpod: deduplicate ports in db 2021-10-27 18:59:56 +02:00
stats.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
storage.go Storage can remove ErrNotAContainer as well 2021-09-29 10:12:49 -04:00
util.go inotify: make sure to remove files 2021-12-09 17:06:21 +01:00
util_linux.go Update vendor or containers/common moving pkg/cgroups there 2021-12-07 06:17:11 -05:00
util_linux_test.go
util_test.go
volume.go volumes: Add support for exporting volumes to external tar 2021-08-23 20:42:41 +05:30
volume_inspect.go
volume_internal.go Support size and inode options on builtin volumes 2021-08-02 10:32:45 -04:00
volume_internal_linux.go Support size and inode options on builtin volumes 2021-08-02 10:32:45 -04:00