-
Notifications
You must be signed in to change notification settings - Fork 574
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
feat: support image cache copying #9845
Conversation
} | ||
|
||
dstStat, err := os.Stat(dst) | ||
if err == nil && srcStat.Size() == dstStat.Size() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two files could haave the same size, but hashing is expensive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that would be outside of our control I guess, we just try to skip copying what is already there
f2238a1
to
7208d00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆒
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆒 but cri.(*ImageCacheConfigController).copyImageCache
has two too many states and it's not exactly clear how it works. I think it could be simplified, but I don't have any really good ideas right now.
Fixes siderolabs#9615 The are no integration tests, this is to be addressed later. I did manual tests so far. Also includes first draft of the documentation. Signed-off-by: Andrey Smirnov <[email protected]>
7208d00
to
770be16
Compare
/m |
Fixes #9615
The are no integration tests, this is to be addressed later. I did manual tests so far.
Also includes first draft of the documentation.