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

era_invalidate reads the live metadata instead of the metadata snapshot when using the --metadata-snapshot parameter #192

Open
ntsiron opened this issue Jan 4, 2022 · 2 comments

Comments

@ntsiron
Copy link
Contributor

ntsiron commented Jan 4, 2022

Hello,

I noticed that era_invalidate reads the live metadata (superblock) instead of the metadata snapshot when using the --metadata-snapshot parameter.

The offending code is https://github.com/jthornber/thin-provisioning-tools/blob/main/era/metadata.cc#L45: The metadata_snap parameter is not passed to open_metadata().

If I am not missing something, and this is indeed a bug, I can send a PR to fix it.

Thanks,
Nikos

@jthornber
Copy link
Owner

jthornber commented Jan 4, 2022 via email

@mingnus
Copy link
Collaborator

mingnus commented Jan 5, 2022

I noticed that while I was doing the Rust version recently. You could send a PR if possible, or I'll fix it in conjunction with some recent update/bugfixes in the next few days. Thanks.

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

No branches or pull requests

3 participants