-
Notifications
You must be signed in to change notification settings - Fork 246
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
overlay: drop relLowers workaround #1411
Conversation
commit 7c5964d changed the way the mountFrom program works by always using the /proc/self/fd/%d path for the lower dirs. Hence there is no gain to pass a path relative to the storage, but we can just pass the absolute path as the resulting file path length is the same and won't affect how many layers we can specify. This fixes idmapped mounts when the total length of lower layers is > 4096 and it also solves the problem of using layers from additional stores. Closes: containers#1410 Signed-off-by: Giuseppe Scrivano <[email protected]>
LGTM |
This means we'll fork to do the mount in a child more often than we do now. |
The issue happened with an image that has many layers. I think it is fine for now to simplify the code if the additional cost happens only with these images |
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.
- It’s completely unclear to me how this is fixing anything. Was the relative-path code buggy in some way WRT additional stores?
- If this code is code the primary reason for creating the
link
symlink forest, should we actually drop all users of it? There are some left. - … and show we stop creating the symlinks at all? (Would that break older-version readers, or would they workaround via
recreateSymlink
? And if it would break them, do we need to care, or is one-directional compatibility sufficient?)
when idmapped mounts are used, we were just rewriting the absolute lower dirs, but not updating the
I had a quick look at it, and it seems the |
Ah. Thanks for writing that down. |
can we move this forward or is there anything blocking I should take care of? |
The implementation LGTM. As for the PR as a whole, do we want to drop all of the |
If we need to |
commit 7c5964d changed the way the mountFrom program works by always using the /proc/self/fd/%d path for the lower dirs. Hence there is no gain to pass a path relative to the storage, but we can just pass the absolute path as the resulting file path length is the same and won't affect how many layers we can specify.
This fixes idmapped mounts when the total length of lower layers is > 4096 and it also solves the problem of using layers from additional stores.
Closes: #1410
Signed-off-by: Giuseppe Scrivano [email protected]