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

Skip spacemaps reading in case of pool readonly import #12687

Merged

Conversation

fuporovvStack
Copy link
Contributor

Motivation and Context

Close issue #9095

The only zdb utility require to read metaslab-related data during
read-only pool import because of spacemaps validation. Add global
variable which will allow zdb read spacemaps in case of readonly
import mode.

Description

As was explained in the #9095, the proposed change allows to keep access to pool data if spacemaps were corrupted.

How Has This Been Tested?

It is not clear how it could be tested from users side, but if spacemaps will become unavailable for zdb, a bunch of zfs testsuite test cases will be broken.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

The only zdb utility require to read metaslab-related data during
read-only pool import because of spacemaps validation. Add global
varialbe which will allow zdb read spacemaps in case of readonly
import mode.

Signed-off-by: Fedor Uporov <fuporov.vstack@gmail.com>
Closes openzfs#9095
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Oct 26, 2021
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Oct 29, 2021
@behlendorf behlendorf merged commit e39fe05 into openzfs:master Nov 9, 2021
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Apr 27, 2022
The only zdb utility require to read metaslab-related data during
read-only pool import because of spacemaps validation. Add global
variable which will allow zdb read spacemaps in case of readonly
import mode.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Fedor Uporov <fuporov.vstack@gmail.com>
Closes openzfs#9095
Closes openzfs#12687
behlendorf added a commit that referenced this pull request Apr 28, 2022
The only zdb utility require to read metaslab-related data during
read-only pool import because of spacemaps validation. Add global
variable which will allow zdb read spacemaps in case of readonly
import mode.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Fedor Uporov <fuporov.vstack@gmail.com>
Closes #9095
Closes #12687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants