]> granicus.if.org Git - zfs/commit
zdb: don't print log spacemap stats in pools without the feature
authorSerapheim Dimitropoulos <serapheim@delphix.com>
Thu, 18 Jul 2019 19:54:03 +0000 (12:54 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 Jul 2019 19:54:03 +0000 (12:54 -0700)
commitbac15c11983e72cfd8ce10512aa9d227135bbca0
treed1b8c5bfbd18cc76be59adf244530a4326ce6584
parentf79121d11463b8c9a6cbaf7285e5df6ccb9902f9
zdb: don't print log spacemap stats in pools without the feature

Creating a pool with not features enabled and running
`zdb -mmmmmm on` it before the patch:

```
Log Space Maps in Pool:

Log Space Map Obsolete Entry Statistics:
0        valid entries out of 0        - txg 0
0        valid entries out of 0        - total
```

After this patch the above output goes away.

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