zfsonlinux/zfs — pull request #2489 by dweeezil (2014-07-12 13:39:04+00:00)
Title: Illumos 4168, 4169, 4170: ztest assert, zdb verbatim and zhack ACTIVE fi...

...xes

4168 ztest assertion failure in dbuf_undirty
4169 verbatim import causes zdb to segfault
4170 zhack leaves pool in ACTIVE state
Reviewed by: Adam Leventhal
Reviewed by: Eric Schrock
Reviewed by: Matthew Ahrens
Approved by: Dan McDonald
Ported by: Tim Chase

References:
https://github.com/illumos/illumos-gate/commit/7fdd916c474ea52896c671bbe7b56ba34a1ca132
https://www.illumos.org/issues/4168
https://www.illumos.org/issues/4169
https://www.illumos.org/issues/4170

Porting notes:

Of particular interest when troubleshooting corrupted pools, the
commonly-used "zdb -e" operation may perform verbatim imports and
furthermore, it will soon have direct support for verbatim imports via
a new "-V" option. The 4169 fix eliminates a common segfault case in
which spa_history_log_version() tries to access an un-opened dsl_pool_t.

Fixes #2451