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

Improvements to the blob cache manager #466

Merged
merged 5 commits into from
Jun 6, 2022

Conversation

jiangliu
Copy link
Collaborator

@jiangliu jiangliu commented Jun 3, 2022

Several improvements to the nydusd blob cache manager.

Refine blob cache manager code by:
1) add more doc
2) refine error messages
3) add const ID_SPLITTER

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@jiangliu jiangliu force-pushed the blobcache branch 11 times, most recently from 4aceb02 to 38ef97a Compare June 4, 2022 04:01
Change id splitter for domain id and blob id from "-" to "/" and ensure
that domain/blob id doesn't contain the splitter char.

This helps to protect malicious user to access blobs in other domain
by tweaking the blob id.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Add unit test case to insert bootstrap blob into blob cache manager.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@jiangliu jiangliu force-pushed the blobcache branch 11 times, most recently from b013c82 to 8faf701 Compare June 4, 2022 09:33
The currently API only supports removing all blobs associated with a
domain, so enhance the API to support removing specific blob too.
Also rename BlobObjectParam to BlobCacheObjectId.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@jiangliu jiangliu force-pushed the blobcache branch 3 times, most recently from ccfb40c to 59a92cd Compare June 5, 2022 03:13
@jiangliu jiangliu force-pushed the blobcache branch 4 times, most recently from cb3ddd2 to 772cc3e Compare June 5, 2022 05:22
@jiangliu jiangliu changed the title WIP: improvements to the blob cache manager Improvements to the blob cache manager Jun 5, 2022
@imeoer
Copy link
Collaborator

imeoer commented Jun 6, 2022

Others LGTM!

@hsiangkao
Copy link
Contributor

@nan1994 please help test this with the latest fscache kernel, thanks!

Currently implementation doesn't support sharing data blobs among
bootstraps/container images. So enhance the implementation to support
data blob sharing.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
@nan1994
Copy link
Contributor

nan1994 commented Jun 6, 2022

I have tested this with the latest fscache kernel and it works well.

@imeoer imeoer merged commit 74ddb6c into dragonflyoss:master Jun 6, 2022
@jiangliu jiangliu deleted the blobcache branch July 19, 2022 18:01
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.

4 participants