HomeFreeBSD

9072 handle error of zap_cursor_retrieve() for log spacemap zap

Description

9072 handle error of zap_cursor_retrieve() for log spacemap zap

In spa_ld_log_sm_metadata(), it is possible for zap_cursor_retrieve()
to return errors other than the expected ENOENT (e.g. when we are at
the end of the zap). Ensure that these error cases are handled
correctly by the import path.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Sara Hartse <sara.hartse@delphix.com>
Reviewed by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #9074

Details

Provenance
Serapheim Dimitropoulos <serapheim@delphix.com>Authored on Jul 30 2019, 8:20 PM
mahrensCommitted on Jul 30 2019, 8:20 PM
Parents
rG2fcf4481a6f6: mismerged log spacemap comment for metaslab_verify_weight_and_frag
Branches
Unknown
Tags
Unknown