Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system df: fix image-size calculations #7604

Merged
merged 1 commit into from
Sep 11, 2020

Commits on Sep 11, 2020

  1. 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: containers#7406
    Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
    vrothberg committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    f867d27 View commit details
    Browse the repository at this point in the history