]> granicus.if.org Git - zfs/commit
mmp_on_uberblocks: Use kstat for uberblock counts
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Mon, 31 Jul 2017 23:54:34 +0000 (16:54 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 31 Jul 2017 23:54:34 +0000 (16:54 -0700)
commitaf0f842883ceb7e88b8f4d1fe6ad80b6ad951827
tree434cc79faa3c04c2468062e1a4a74cd5af024e73
parentc7a7601c08d3f7db42dfca46e0ad8aa287df43da
mmp_on_uberblocks: Use kstat for uberblock counts

Use kstat to get a more accurate count of uberblock updates.
Using a loop with zdb can potentially miss some uberblocks.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6407
Closes #6419
tests/zfs-tests/tests/functional/mmp/mmp.kshlib
tests/zfs-tests/tests/functional/mmp/mmp_on_uberblocks.ksh
tests/zfs-tests/tests/functional/mmp/mmp_reset_interval.ksh
tests/zfs-tests/tests/functional/mmp/mmp_write_uberblocks.ksh