-
Notifications
You must be signed in to change notification settings - Fork 231
nydus-image: modify compact interface #1631
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
Conversation
This commit uses compact parameter directly insteadof compact config file in the cli interface. It also fix a bug where chunk key for ChunkWrapper::Ref is not generated correctly. Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1631 +/- ##
==========================================
- Coverage 61.29% 61.24% -0.05%
==========================================
Files 146 146
Lines 48156 48189 +33
Branches 46123 46156 +33
==========================================
- Hits 29516 29513 -3
- Misses 17084 17115 +31
- Partials 1556 1561 +5
|
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.
Others LGTM, thanks!
src/bin/nydus-image/main.rs
Outdated
.group("backend"), | ||
Arg::new("min-used-ratio") | ||
.long("min-used-ratio") | ||
.help("Lower bound of used ratio for blobs to be kept") |
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.
May be add some help hint: Lower bound of used ratio for blobs to be kept, possible values: 0-99, 0 means disable
.
src/bin/nydus-image/main.rs
Outdated
.arg( | ||
Arg::new("compact-blob-size") | ||
.long("compact-blob-size") | ||
.help("Upper bound of blob size for blobs to be compacted") |
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.
Upper bound of blob size for blobs to be compacted, in bytes
.
src/bin/nydus-image/main.rs
Outdated
.arg( | ||
Arg::new("max-compact-size") | ||
.long("max-compact-size") | ||
.help("Upper bound of compacted blob 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.
Upper bound of compacted blob size, in bytes
.
This patch modifies the compact interface to meet the change in nydus-image. Signed-off-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
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.
LGTM!
This commit uses compact parameter directly insteadof compact config file in the cli interface. It also fix a bug where chunk key for ChunkWrapper::Ref is not generated correctly.
Types of changes
What types of changes does your PullRequest introduce? Put an
x
in all the boxes that apply: