podman/libpod
Valentin Rothberg f867d27ae0 system df: fix image-size calculations
Fix the image-size calculations of system-df, where the shared size is
the actual shared size with other images (including children) and the
(total) size is the sum of the shared and unique size [1].

To calculate parent/child relations, make use of the recently added
layer tree which allows for quick (and cached!) calculations.

Break calculating image disk usages into the image runtime to a) access
the layer tree, and b) make the code easier to maintain and extend.

[1] https://docs.docker.com/engine/reference/commandline/system_df/

Fixes: #7406
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-09-11 14:48:56 +02:00
..
common Set blob cache directory based on GraphDriver 2019-03-29 08:27:33 -04:00
define Show c/storage (Buildah/CRI-O) containers in ps 2020-09-09 06:10:02 -04:00
driver removMergeDir from inspect result if not mounted 2019-08-13 15:13:20 -04:00
events add event for image build 2020-08-12 10:00:51 -05:00
filters Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
image system df: fix image-size calculations 2020-09-11 14:48:56 +02:00
layers
linkmode Add podman static build 2020-05-11 13:11:07 +02:00
lock Delete prior /dev/shm/* 2020-08-28 09:26:33 -04:00
logs fix podman logs --tail when log is bigger than pagesize 2020-08-06 20:56:30 +02:00
boltdb_state.go Unconditionally retrieve pod names via API 2020-08-10 10:15:51 -04:00
boltdb_state_internal.go Improve error message when creating a pod/ctr with the same name 2020-08-04 11:39:27 +02:00
boltdb_state_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
boltdb_state_unsupported.go podman-remote inspect 2019-01-18 15:43:11 -06:00
common_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_api.go Force Attach() to send a SIGWINCH and redraw 2020-09-10 17:54:47 -04:00
container_commit.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_config.go Ensure pod infra containers have an exit command 2020-08-13 14:03:57 -04:00
container_exec.go Send HTTP Hijack headers after successful attach 2020-08-27 12:50:22 -04:00
container_graph.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_graph_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_inspect.go podman: add option --cgroup-conf 2020-08-21 19:06:05 +02:00
container_internal.go Merge pull request #7578 from giuseppe/join-userns-reuse-mappings 2020-09-10 15:16:51 -04:00
container_internal_linux.go Merge pull request #7541 from mheon/modify_group 2020-09-10 17:05:02 -04:00
container_internal_linux_test.go Make an entry in /etc/group when we modify /etc/passwd 2020-09-10 13:02:31 -04:00
container_internal_test.go Refactor container config 2020-07-23 10:18:14 -04:00
container_internal_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_linux.go Do not fetch pod and ctr State on retrieval in Bolt 2018-07-31 14:19:50 +00:00
container_log.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_log_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_log_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_top_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_top_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
container_unsupported.go Do not fetch pod and ctr State on retrieval in Bolt 2018-07-31 14:19:50 +00:00
container_validate.go rootless: support `podman network create` (CNI-in-slirp4netns) 2020-09-09 15:47:38 +09:00
diff.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
events.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
healthcheck.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
healthcheck_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
healthcheck_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
in_memory_state.go Unconditionally retrieve pod names via API 2020-08-10 10:15:51 -04:00
info.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
kube.go Merge pull request #7591 from haircommander/play-kube-process-namespace 2020-09-11 05:56:35 -04:00
mounts_linux.go set root propagation based on volume properties 2018-11-26 13:55:02 +01:00
networking_linux.go rootless: support `podman network create` (CNI-in-slirp4netns) 2020-09-09 15:47:38 +09:00
networking_unsupported.go rootless: support `podman network create` (CNI-in-slirp4netns) 2020-09-09 15:47:38 +09:00
oci.go Send HTTP Hijack headers after successful attach 2020-08-27 12:50:22 -04:00
oci_attach_linux.go Force Attach() to send a SIGWINCH and redraw 2020-09-10 17:54:47 -04:00
oci_attach_linux_cgo.go Implement conmon exec 2019-07-22 15:57:23 -04:00
oci_attach_linux_nocgo.go Implement conmon exec 2019-07-22 15:57:23 -04:00
oci_attach_unsupported.go Force Attach() to send a SIGWINCH and redraw 2020-09-10 17:54:47 -04:00
oci_conmon.go podman: add new cgroup mode split 2020-06-25 17:16:12 +02:00
oci_conmon_exec_linux.go Send HTTP Hijack headers after successful attach 2020-08-27 12:50:22 -04:00
oci_conmon_linux.go rootless: support `podman network create` (CNI-in-slirp4netns) 2020-09-09 15:47:38 +09:00
oci_conmon_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
oci_missing.go Send HTTP Hijack headers after successful attach 2020-08-27 12:50:22 -04:00
oci_util.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
options.go libpod: read mappings when joining a container userns 2020-09-10 19:17:01 +02:00
pod.go Ensure pod infra containers have an exit command 2020-08-13 14:03:57 -04:00
pod_api.go Clean up pods before returning from Pod Stop API call 2020-08-17 11:04:26 -04:00
pod_internal.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_status.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_top_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pod_top_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
reset.go Don't remove config files with podman system reset 2020-08-28 15:22:03 +02:00
rootless_cni_linux.go rootless: support `podman network create` (CNI-in-slirp4netns) 2020-09-09 15:47:38 +09:00
runtime.go Support sighup reload configuration files 2020-08-18 14:42:49 -04:00
runtime_cstorage.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_ctr.go Merge pull request #7460 from AkihiroSuda/allow-rootless-cni 2020-09-10 14:00:49 -04:00
runtime_img.go support multi-image (docker) archives 2020-09-08 08:47:19 +02:00
runtime_img_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_migrate.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_migrate_unsupported.go Add podman system reset command 2019-11-29 05:34:52 -05:00
runtime_pod.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_pod_infra_linux.go Ensure pod infra containers have an exit command 2020-08-13 14:03:57 -04:00
runtime_pod_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_pod_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_renumber.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_volume.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_volume_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
runtime_volume_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
state.go Unconditionally retrieve pod names via API 2020-08-10 10:15:51 -04:00
state_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
stats.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
stats_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
storage.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
util.go Send HTTP Hijack headers after successful attach 2020-08-27 12:50:22 -04:00
util_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
util_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
util_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_inspect.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_internal.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_internal_linux.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
volume_internal_unsupported.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00