Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

blk-dev: hotplug read only if applicable #3115

Merged
merged 4 commits into from
Jan 13, 2021

Conversation

egernst
Copy link
Member

@egernst egernst commented Jan 8, 2021

If a volume is backed by a block device, let's make sure we take into account whether it should be hot plugged RO or not.

While updating this, I made some minor non-functional changes to correct comments, make storage handling a bit more clear.

@egernst egernst changed the title Storage cleanup blk-dev: hotplug read only if applicable Jan 8, 2021
@egernst
Copy link
Member Author

egernst commented Jan 8, 2021

/test

@codecov
Copy link

codecov bot commented Jan 8, 2021

Codecov Report

Merging #3115 (b2956f3) into master (082291a) will increase coverage by 0.02%.
The diff coverage is 52.63%.

@@            Coverage Diff             @@
##           master    #3115      +/-   ##
==========================================
+ Coverage   50.28%   50.30%   +0.02%     
==========================================
  Files         120      120              
  Lines       15994    16003       +9     
==========================================
+ Hits         8043     8051       +8     
- Misses       6859     6861       +2     
+ Partials     1092     1091       -1     

@jodh-intel jodh-intel added the do-not-merge PR has problems or depends on another label Jan 8, 2021
@jodh-intel
Copy link
Contributor

Marking as dnm due to vendor change.

@egernst - I'm slightly surprised this is being raised on 1.x - is this correct?

@egernst
Copy link
Member Author

egernst commented Jan 8, 2021

It is correct. I'll be back porting to stable and forward to 2.0 as well. I think we'll want to update our vendoring to be consistent between these.

egernst and others added 2 commits January 11, 2021 15:23
Let's keep aligned with Kata 2.0, and utilize the kata-container
organizations' govmm.

Fixes: kata-containers#3000

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
We are adding access-mode for hotplugged blk devices. Let's revendor
govmm so we can apply this for QEMU.

Signed-off-by: Eric Ernst <eric_ernst@apple.com>
@egernst
Copy link
Member Author

egernst commented Jan 12, 2021

/test

@egernst egernst removed the do-not-merge PR has problems or depends on another label Jan 12, 2021
Copy link
Member

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

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

lgtm!

@egernst
Copy link
Member Author

egernst commented Jan 12, 2021

/test

@egernst
Copy link
Member Author

egernst commented Jan 12, 2021

Minor update to fix pmem test failures.

@egernst
Copy link
Member Author

egernst commented Jan 12, 2021

/test

@egernst
Copy link
Member Author

egernst commented Jan 12, 2021

/test

Update some headers, very minor refactoring

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
If a block based volume is read only, let's make sure we add as a RO
device

Fixes: kata-containers#3114

Signed-off-by: Eric Ernst <eric.g.ernst@gmail.com>
@egernst
Copy link
Member Author

egernst commented Jan 12, 2021

/test

Copy link
Member

@mxpv mxpv left a comment

Choose a reason for hiding this comment

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

LGTM

@egernst egernst merged commit 46ab972 into kata-containers:master Jan 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants