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

Add loopdevice implementation #1891

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

davidcassany
Copy link
Contributor

@davidcassany davidcassany commented Dec 20, 2023

This PR adds the LoopDevice implementation and applies few little changes in utilities to make ResolveLink method easier to use.

This LoopDevice implementation includes its unit tests but it is no used anywhere yet, meaning it does not changes the flow of any already existing elemental command. In a follow up PR there will be a refactor on install, reset and upgrade commands to actually make use of it.

Part of #1874

@davidcassany davidcassany requested a review from a team as a code owner December 20, 2023 08:36
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2023

Codecov Report

Attention: 94 lines in your changes are missing coverage. Please review.

Comparison is base (3985ba9) 73.53% compared to head (ac6d170) 73.68%.

Files Patch % Lines
pkg/snapshotter/loopdevice.go 73.11% 64 Missing and 25 partials ⚠️
pkg/utils/common.go 75.00% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1891      +/-   ##
==========================================
+ Coverage   73.53%   73.68%   +0.14%     
==========================================
  Files          70       71       +1     
  Lines        7391     7747     +356     
==========================================
+ Hits         5435     5708     +273     
- Misses       1558     1618      +60     
- Partials      398      421      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: David Cassany <[email protected]>
@frelon frelon enabled auto-merge (squash) December 21, 2023 07:57
@frelon frelon merged commit 3590bbb into rancher:main Dec 21, 2023
14 checks passed
@davidcassany davidcassany deleted the add_loopdevice_implementation branch December 22, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants