-
Notifications
You must be signed in to change notification settings - Fork 111
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
Conversation
80b4f56
to
0159b44
Compare
0159b44
to
62bb8e8
Compare
62bb8e8
to
69c3aa8
Compare
…ol when snapshot is destroyed Signed-off-by: Hrudaya <[email protected]>
69c3aa8
to
1de7498
Compare
bors try |
tryBuild 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. If you want to switch to GitHub's built-in merge queue, visit their help page. |
As a future optimisation, we could do all these actions inside SPDK, as part or post-removal logic. I |
bors merge |
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. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Change Details:
When snapshot is destroyed, reset the usage cache for parent lvol.
When snapshot is destroyed, reset the usage cache of successor snapshots (same parent) and clones.
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.
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.