Skip to content

Commit

Permalink
Handle damaged blk_birth in dsl_deadlist_insert()
Browse files Browse the repository at this point in the history
If a bit were cleared in `bp->blk_birth` such that the txg birth
was now lower than any other txg_birth in the deadlist, then there
will be no entry before this in the tree.

This should be impossible but regardless error handling code has
been added for this case.  By default this is left as a fatal case
and the blk_birth is logged.  However, setting `zfs_recover=1` will
cause the bp to be placed at the start of the deadlist even though
it contains an invalid blk_birth.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Closes openzfs#4086
Closes openzfs#4089
  • Loading branch information
behlendorf authored and goulven riou committed Feb 4, 2016
1 parent 3fcdceb commit 058fa9d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 058fa9d

Please sign in to comment.