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

Refactor more explicit uses of Lvol with the backend interface #1700

Merged
merged 5 commits into from
Aug 9, 2024

Conversation

tiagolobocastro
Copy link
Contributor

@tiagolobocastro tiagolobocastro commented Jul 26, 2024

ci: use sudo to remove test files

Signed-off-by: Tiago Castro <[email protected]>

refactor(wipe): use new backend traits

Use traits rather than explicitly use Lvol.

Signed-off-by: Tiago Castro <[email protected]>

refactor(backends): reuse common factory code

Move common code to the factories allowing us to reuse code between
core components and grpc service.

Signed-off-by: Tiago Castro <[email protected]>

refactor(snapshot): remove unused create-snapshot

Removes unused function still making use of Lvol.
Probably not previously detected because it was being exposed as pub.

Signed-off-by: Tiago Castro <[email protected]>

refactor(stats): use new ops interface

Use new ops interfaces rather than hardcoded lvs/lvol.
This will help support stats for other pool backends.

Signed-off-by: Tiago Castro <[email protected]>

@tiagolobocastro
Copy link
Contributor Author

bors try

1 similar comment
@tiagolobocastro
Copy link
Contributor Author

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Jul 26, 2024
@bors-openebs-mayastor
Copy link

try

Timed out.

@pchandra19
Copy link

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Jul 29, 2024
@bors-openebs-mayastor
Copy link

try

Build succeeded:

io-engine/src/core/bdev.rs Show resolved Hide resolved
io-engine/src/core/bdev.rs Show resolved Hide resolved
io-engine/src/lvm/mod.rs Show resolved Hide resolved
Copy link
Contributor

@abhilashshetty04 abhilashshetty04 left a comment

Choose a reason for hiding this comment

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

Lgtm, Thanks

Use new ops interfaces rather than hardcoded lvs/lvol.
This will help support stats for other pool backends.

Signed-off-by: Tiago Castro <[email protected]>
Removes unused function still making use of Lvol.
Probably not previously detected because it was being exposed as pub.

Signed-off-by: Tiago Castro <[email protected]>
Move common code to the factories allowing us to reuse code between
core components and grpc service.

Signed-off-by: Tiago Castro <[email protected]>
Use traits rather than explicitly use Lvol.

Signed-off-by: Tiago Castro <[email protected]>
@tiagolobocastro
Copy link
Contributor Author

bors merge

bors-openebs-mayastor bot pushed a commit that referenced this pull request Aug 9, 2024
1700: Refactor more explicit uses of Lvol with the backend interface r=tiagolobocastro a=tiagolobocastro

    ci: use sudo to remove test files
    
    Signed-off-by: Tiago Castro <[email protected]>

---

    refactor(wipe): use new backend traits
    
    Use traits rather than explicitly use Lvol.
    
    Signed-off-by: Tiago Castro <[email protected]>

---

    refactor(backends): reuse common factory code
    
    Move common code to the factories allowing us to reuse code between
    core components and grpc service.
    
    Signed-off-by: Tiago Castro <[email protected]>

---

    refactor(snapshot): remove unused create-snapshot
    
    Removes unused function still making use of Lvol.
    Probably not previously detected because it was being exposed as pub.
    
    Signed-off-by: Tiago Castro <[email protected]>

---

    refactor(stats): use new ops interface
    
    Use new ops interfaces rather than hardcoded lvs/lvol.
    This will help support stats for other pool backends.
    
    Signed-off-by: Tiago Castro <[email protected]>

Co-authored-by: Tiago Castro <[email protected]>
@bors-openebs-mayastor
Copy link

This PR was included in a batch that successfully built, but then failed to merge into develop. It will not be retried.

Additional information:

Response status code: 422
{"message":"All comments must be resolved.","documentation_url":"https://docs.github.com/articles/about-protected-branches","status":"422"}

@tiagolobocastro
Copy link
Contributor Author

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit e7383a4 into develop Aug 9, 2024
4 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the refactor-ops branch August 9, 2024 18:43
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