]> granicus.if.org Git - zfs/commit
9072 handle error of zap_cursor_retrieve() for log spacemap zap
authorSerapheim Dimitropoulos <serapheim@delphix.com>
Tue, 30 Jul 2019 20:20:01 +0000 (13:20 -0700)
committerMatthew Ahrens <mahrens@delphix.com>
Tue, 30 Jul 2019 20:20:01 +0000 (13:20 -0700)
commit1ba4f3e7b4e15b2262802909bee50355e439c67e
treeb60b23b1ca407fb4b78e8bbe44eb749d9f5b94f5
parent2fcf4481a6f6ff037e24f2926e31fd64a50536da
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
module/zfs/spa_log_spacemap.c