podman/libpod/image
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
..
testdata Split refNamesFromImageReference from Runtime.getPullListFromRef 2018-08-01 18:22:58 +00:00
config.go honor pull policy in play kube 2020-01-28 13:36:10 -06:00
df.go system df: fix image-size calculations 2020-09-11 14:48:56 +02:00
docker_registry_options.go Add support for variant when pulling images 2020-08-28 09:36:11 -04:00
errors.go Ensure libpod/define does not include libpod/image 2020-07-31 17:17:56 -04:00
filters.go image list: speed up 2020-08-07 12:14:11 +02:00
image.go Merge pull request #7290 from rhatdan/external 2020-09-09 12:15:46 -04:00
image_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
layer_tree.go make image parent check more robust 2020-09-07 11:28:58 +02:00
manifests.go manifest annotate 2020-05-05 15:01:32 -04:00
parts.go honor pull policy in play kube 2020-01-28 13:36:10 -06:00
parts_test.go Remove imageParts.{isTagged,registry,name,tag} 2019-01-14 04:07:24 +01:00
prune.go Show c/storage (Buildah/CRI-O) containers in ps 2020-09-09 06:10:02 -04:00
pull.go support multi-image (docker) archives 2020-09-08 08:47:19 +02:00
pull_test.go support multi-image (docker) archives 2020-09-08 08:47:19 +02:00
search.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
signing_options.go Stage3 Image Library 2018-03-14 20:21:31 +00:00
tree.go Refactor image tree for API usage 2020-02-17 11:12:35 +01:00
utils.go images: distinguish between tags and digests 2019-10-29 13:35:19 -04:00