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

zpool import -m also removing spare and cache when log device is missing #132

Merged
merged 1 commit into from
May 4, 2023

Commits on May 4, 2023

  1. zpool import -m also removing spare and cache when log device is missing

    spa_import() relies on a pool config fetched by spa_try_import() for
    spare/cache devices. Import flags are not passed to spa_tryimport(),
    which makes it return early due to a missing log device and missing
    retrieving the cache device and spare eventually. Passing
    ZFS_IMPORT_MISSING_LOG to spa_tryimport() makes it fetch the correct
    configuration regardless of the missing log device.
    
    Reviewed-by: Alexander Motin <[email protected]>
    Reviewed-by: Brian Behlendorf <[email protected]>
    Signed-off-by: Ameer Hamza <[email protected]>
    Closes openzfs#14794
    ixhamza committed May 4, 2023
    Configuration menu
    Copy the full SHA
    fa6c33a View commit details
    Browse the repository at this point in the history