spiegel_podman/vendor/github.com/containers/common/pkg/config
Valentin Rothberg 34235b2726 system df: fix image-size calculations
Fix two bugs in `system df`:

1.  The total size was calculated incorrectly as it was creating the sum
    of all image sizes but did not consider that a) the same image may
    be listed more than once (i.e., for each repo-tag pair), and that
    b) images share layers.

    The total size is now calculated directly in `libimage` by taking
    multi-layer use into account.

2.  The reclaimable size was calculated incorrectly.  This number
    indicates which data we can actually remove which means the total
    size minus what containers use (i.e., the "unique" size of the image
    in use by containers).

NOTE: The c/storage version is pinned back to the previous commit as it
      is buggy.  c/common already requires the buggy version, so use a
      `replace` to force/pin.

Fixes: #16135
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-10-19 11:20:41 +02:00
..
config.go system df: fix image-size calculations 2022-10-19 11:20:41 +02:00
config_darwin.go Add support for containers.conf volume timeouts 2022-08-23 15:42:00 -04:00
config_freebsd.go Vendor in latest containers/common 2022-05-12 17:36:44 -04:00
config_linux.go Update vendor or containers/buildah 2022-09-23 14:12:37 -04:00
config_local.go autocomplete podman search --filter 2022-05-24 16:07:38 +02:00
config_remote.go vendor c/common@0ededd18a1 2022-03-18 15:18:30 +01:00
config_unsupported.go vendor c/common@0ededd18a1 2022-03-18 15:18:30 +01:00
config_windows.go Vendor in latest containers/common 2022-05-12 17:36:44 -04:00
containers.conf Update vendor containers/(common,image,storage) 2022-10-15 09:42:51 -04:00
containers.conf-freebsd Vendor in latest containers/common 2022-05-12 17:36:44 -04:00
default.go system df: fix image-size calculations 2022-10-19 11:20:41 +02:00
default_darwin.go Add support for containers.conf volume timeouts 2022-08-23 15:42:00 -04:00
default_freebsd.go system df: fix image-size calculations 2022-10-19 11:20:41 +02:00
default_linux.go system df: fix image-size calculations 2022-10-19 11:20:41 +02:00
default_unsupported.go vendor c/common@0ededd18a1 2022-03-18 15:18:30 +01:00
default_windows.go Add support for containers.conf volume timeouts 2022-08-23 15:42:00 -04:00
nosystemd.go vendor c/common@0ededd18a1 2022-03-18 15:18:30 +01:00
pod_exit_policy.go vendor c/common@main 2022-05-02 11:16:14 +02:00
pull_policy.go Vendor in containers/(storage,image, common, buildah) 2022-07-18 10:42:04 -04:00
systemd.go system df: fix image-size calculations 2022-10-19 11:20:41 +02:00