jthornber/thin-provisioning-tools

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

Opened this issue · 2 comments

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

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.