Skip to content

[release/1.7 backport] local: avoid writing to content root on readonly store#10913

Merged
dmcgowan merged 1 commit into
containerd:release/1.7from
austinvazquez:cherry-pick-3cc2343de020fa448138ce0283e8a142c05b6856-to-1.7
Nov 20, 2024
Merged

[release/1.7 backport] local: avoid writing to content root on readonly store#10913
dmcgowan merged 1 commit into
containerd:release/1.7from
austinvazquez:cherry-pick-3cc2343de020fa448138ce0283e8a142c05b6856-to-1.7

Conversation

@austinvazquez

Copy link
Copy Markdown
Member

A contentstore can be created on top of readonly path and should not fail unless there is an attempt to write into it.

Currently this fails because new ingest directory is created always, meaning for example that you can't create a store to read blobs from OCI layout without it contaminating the OCI layout files.

(cherry picked from commit 3cc2343)

A contentstore can be created on top of readonly path and
should not fail unless there is an attempt to write into it.

Currently this fails because new ingest directory is created
always, meaning for example that you can't create a store to
read blobs from OCI layout without it contaminating the OCI
layout files.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 3cc2343)
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
@k8s-ci-robot

Copy link
Copy Markdown

Hi @austinvazquez. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@thompson-shaun

Copy link
Copy Markdown

looks like we're one approval short? /cc @tonistiigi or @dmcgowan

@dmcgowan dmcgowan merged commit 921b05c into containerd:release/1.7 Nov 20, 2024
@austinvazquez austinvazquez deleted the cherry-pick-3cc2343de020fa448138ce0283e8a142c05b6856-to-1.7 branch November 20, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants