spiegel_podman/cmd/podman/system
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
..
connection podman machine ssh handling 2022-09-26 18:35:01 -04:00
connection.go Add podman machine events 2022-05-03 13:49:01 -07:00
context.go Add support for podman context as alias to podman system connection 2022-09-15 08:17:15 -04:00
df.go system df: fix image-size calculations 2022-10-19 11:20:41 +02:00
dial_stdio.go Fix stutters 2022-09-10 07:52:00 -04:00
events.go podman events --format: fix duplicated newline 2022-09-12 18:05:18 +02:00
info.go podman info: use report.Formatter over Template 2022-09-13 10:33:14 +02:00
migrate.go enable gocritic linter 2022-04-26 18:12:22 +02:00
prune.go podman system prune support prune unused networks 2022-06-14 14:04:03 +09:00
renumber.go enable gocritic linter 2022-04-26 18:12:22 +02:00
reset.go Update system reset warning message to warn against deletion of all volumes 2022-09-05 19:34:04 +02:00
reset_machine.go podman system reset removed machines incorrectly 2022-05-04 10:31:42 -04:00
reset_machine_unsupported.go podman system reset removed machines incorrectly 2022-05-04 10:31:42 -04:00
service.go fix a number of errcheck issues 2022-03-22 13:15:28 +01:00
service_abi.go Return error in podman system service if URI scheme is not unix/tcp 2022-10-06 14:47:03 +03:00
system.go bump go module to version 4 2022-01-18 12:47:07 +01:00
unshare.go cmd/podman: switch to golang native error wrapping 2022-06-30 12:58:57 +02:00
version.go podman version: use report.Formatter over Template 2022-09-13 10:33:15 +02:00