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

unpacked img size #205

Merged
merged 1 commit into from
May 14, 2021
Merged

Conversation

fahedouch
Copy link
Member

fixing #50
Considering that the image unpacked size is the image ChainID snapshot size

Signed-off-by: fahed dorgaa fahed.dorgaa@gmail.com

images.go Outdated
@@ -94,7 +95,7 @@ func printImages(ctx context.Context, clicontext *cli.Context, imageList []image
}

for _, img := range imageList {
size, err := img.Size(ctx, cs, platforms.DefaultStrict())
size, err := unpackedImageSize(ctx, clicontext, client, img)
if err != nil {
return errors.Wrap(err, "failed to compute image size")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be logrus.Warn, not return err

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Multiple images may face this warning depending on snapshotter, so a warning should be printed only once)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AkihiroSuda changes applied

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but needs squashing

Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
@AkihiroSuda AkihiroSuda merged commit 9b94ae7 into containerd:master May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants