mirror of
https://github.com/moby/moby.git
synced 2026-07-13 19:12:11 +00:00
The present content size is included in the image size usage and should be included in the total size that the layer takes up on disk. This prevents an issue where the reclaimable amount reported by the CLI was a negative number. This also updates the `/system/df` endpoint to use a new type that computes information that was previously computed by the CLI. Computing these in the server should require less work from the CLI and ensure the calculations are more accurate because the CLI doesn't have to reconstruct the numbers. Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>