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

let fscache driver enforce shared daemon mode forcefully #338

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

changweige
Copy link
Member

It will be more friendly to users by hiding some inner details

Signed-off-by: Changwei Ge gechangwei@bytedance.com

It will be more friendly to users by hiding some inner details

Signed-off-by: Changwei Ge <gechangwei@bytedance.com>
@changweige
Copy link
Member Author

@hsiangkao Please take a glance

@@ -93,6 +94,12 @@ func ProcessConfigurations(c *SnapshotterConfig) error {
if err != nil {
return err
}

if c.DaemonConfig.FsDriver == FsDriverFscache && m != DaemonModeShared {
log.L.Infof("fscache driver must enforce \"shared\" daemon mode, change it forcefully from %s", m)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better to be a warning message?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay ignore me, it makes sense.

@codecov-commenter
Copy link

Codecov Report

Base: 28.30% // Head: 28.33% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (f0c2bde) compared to base (89aa69e).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #338      +/-   ##
==========================================
+ Coverage   28.30%   28.33%   +0.02%     
==========================================
  Files          37       37              
  Lines        3674     3671       -3     
==========================================
  Hits         1040     1040              
+ Misses       2514     2510       -4     
- Partials      120      121       +1     
Impacted Files Coverage Δ
config/config.go 19.29% <0.00%> (+1.11%) ⬆️
config/global.go 35.55% <0.00%> (-3.47%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@changweige changweige merged commit 3d37ee2 into containerd:main Jan 31, 2023
@changweige changweige deleted the fscache-enforce-shared branch February 6, 2023 06:18
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