-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It turns out only counting the layers size is not sufficient for `podman systemd df` as it excludes the size of the manifests, configs and potentially attached meta data in the storage. Instead, sum the image sizes but distract redundant layers. That indeed gives the expected result and does not yield negative results for reclaimable space. Remove the unrelease LayersDiskUsage function again to avoid expensive recalculation of the layer tree. We are still below 1.0, and I am convinced the total image size belongs into DiskUsage. NOTE: The DiskUsage function does not have test coverage in libimage. This should be addressed at some point but in the interest of time I leverage podman's system tests. Signed-off-by: Valentin Rothberg <[email protected]>
- Loading branch information
Showing
4 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters