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

overlay.Get(): default to read-only for layers in additionalStores #1123

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

nalind
Copy link
Member

@nalind nalind commented Jan 27, 2022

When mounting a layer, if the layer in question lives in an additional store, default to mounting it read-only, which is how we're treating the additional store's layers. If we need to generate a diff using the naive diff implementation, this will prevent errors that would crop up if we tried and failed to mount the layer read-write, per #1121.

When mounting a parent layer in drivers.NaiveDiffDriver.Changes(), default to mounting it read-only, too, since a layer that is the basis for other layers shouldn't ever need to be mounted read-write anyway.

The parent layer, by virtue of being a parent layer isn't going to be
modified, so default to mounting it read-only.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
When mounting a layer, if the layer in question lives in an additional
store, default to mounting it read-only.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@rhatdan
Copy link
Member

rhatdan commented Jan 27, 2022

LGTM

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

3 participants