diff options
-rw-r--r-- | cmd/zdb/zdb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index 8ccbd5e8b..7e7e26448 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -1204,6 +1204,9 @@ dump_metaslabs(spa_t *spa) static void dump_log_spacemaps(spa_t *spa) { + if (!spa_feature_is_active(spa, SPA_FEATURE_LOG_SPACEMAP)) + return; + (void) printf("\nLog Space Maps in Pool:\n"); for (spa_log_sm_t *sls = avl_first(&spa->spa_sm_logs_by_txg); sls; sls = AVL_NEXT(&spa->spa_sm_logs_by_txg, sls)) { @@ -5823,6 +5826,9 @@ log_spacemap_obsolete_stats_cb(spa_t *spa, space_map_entry_t *sme, static void dump_log_spacemap_obsolete_stats(spa_t *spa) { + if (!spa_feature_is_active(spa, SPA_FEATURE_LOG_SPACEMAP)) + return; + log_sm_obsolete_stats_arg_t lsos; bzero(&lsos, sizeof (lsos)); |