Skip to content

Commit

Permalink
Fix ZDB on imported object store pool (openzfs#491)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Dagnelie <[email protected]>
  • Loading branch information
pcd1193182 authored Oct 7, 2021
1 parent e8ccdbc commit 5c91c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/zdb/zdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6356,7 +6356,7 @@ dump_block_stats(spa_t *spa)
* For an objectstore based zpool, there are no space maps and zdb leak
* detection will not work.
*/
if (objstore && !dump_opt['L']) {
if (spa_is_object_based(spa) && !dump_opt['L']) {
(void) printf("\nSkipping leak detection for object-store "
"based zpool.\n\n");
dump_opt['L'] = 1;
Expand Down

0 comments on commit 5c91c0e

Please sign in to comment.