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

fix(snapshot): reset usage cache for the parent lvol when snapshot is destroyed #1493

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

hrudaya21
Copy link
Contributor

@hrudaya21 hrudaya21 commented Aug 18, 2023

Change Details:

  1. When snapshot is destroyed, reset the usage cache for parent lvol.

  2. When snapshot is destroyed, reset the usage cache of successor snapshots (same parent) and clones.

  3. When the last clone is destroyed and there are any discarded snapshots leftout, as part of destroying snapshot, reset the parent Lvol usage details from cache.

  4. If discarded Snapshot destroy happens as part of pool import, also reset the parent Lvol usage details from cache.

Why Changes Required

Volume usage information should show properly when chain of snapshots and clones are deleted. Thin provisioned lvol cache information to be cleared to show the actual allocated size when any linked lvol (snapshot/clone) is destroyed.

@hrudaya21 hrudaya21 force-pushed the fix/GTM-1211 branch 6 times, most recently from 80b4f56 to 0159b44 Compare August 22, 2023 14:26
io-engine/src/lvs/lvol_snapshot.rs Outdated Show resolved Hide resolved
io-engine/src/lvs/lvol_snapshot.rs Outdated Show resolved Hide resolved
io-engine/src/lvs/lvol_snapshot.rs Outdated Show resolved Hide resolved
io-engine/src/lvs/lvol_snapshot.rs Outdated Show resolved Hide resolved
io-engine/src/lvs/lvol_snapshot.rs Show resolved Hide resolved
io-engine/src/lvs/lvol_snapshot.rs Outdated Show resolved Hide resolved
io-engine/src/lvs/lvol_snapshot.rs Outdated Show resolved Hide resolved
@hrudaya21
Copy link
Contributor Author

bors try

bors bot pushed a commit that referenced this pull request Aug 23, 2023
@bors
Copy link
Contributor

bors bot commented Aug 23, 2023

try

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@mtzaurus
Copy link
Contributor

As a future optimisation, we could do all these actions inside SPDK, as part or post-removal logic. I

@hrudaya21
Copy link
Contributor Author

bors merge

@bors
Copy link
Contributor

bors bot commented Aug 24, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit c0ca169 into openebs:develop Aug 24, 2023
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.

3 participants