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

Fix generation of non-standard "scan" in object directory. #2097

Closed
wants to merge 2 commits into from

Commits on Feb 3, 2014

  1. Fix generation of non-standard "scan" and "bptree_obj" in object dire…

    …ctory.
    
    Commit 1421c89 expanded the size of a zbookmark_t from 24 to 25 64-bit
    values which similarly expands the size of the "scan" entry in the pool's
    object directory and causes the pool to become un-importable by other
    OpenZFS implementations.
    
    This commit renames "struct zbookmark" to "struct zbookmark_phys" since
    it is related to an on-disk format and adds a new "struct zbookmark" that
    contains the former as its first member.  The effect is that the "struct
    zbookmark" items written to the object directory in both the "scan" and
    "bptree_obj" entries contain only the correct subset of the bookmark.
    
    Fixes openzfs#2094
    dweeezil committed Feb 3, 2014
    Configuration menu
    Copy the full SHA
    89a6e7c View commit details
    Browse the repository at this point in the history
  2. Allow import of pools with corrupted "scan" entries in the object dir…

    …ectory.
    
    Add a comptibility shim to dsl_scan_init() to support importing broken
    pools that have the larger-than-normal "scan" entry.
    dweeezil committed Feb 3, 2014
    Configuration menu
    Copy the full SHA
    f29cfc1 View commit details
    Browse the repository at this point in the history