sbin/hammer: Add zone-bigblock statistics to hammer checkmap command
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 16 Mar 2015 16:34:40 +0000 (01:34 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 16 Mar 2015 17:24:02 +0000 (02:24 +0900)
commitd42b45c3c4ad841d4c955ba6341c266aaac32b57
tree11c28811976373abfe0dc7558ac9ca9a46c3cd83
parent6cf258d994412a6a1c1f03158d106279b712f587
sbin/hammer: Add zone-bigblock statistics to hammer checkmap command

- Make hammer checkmap command print zone-bigblock statistics when
  -v option is used.

- Note that hammer checkmap command does not take into account all
  zones that are currently used by HAMMER. For example the command
  does not count bigblocks used by undo zone, so zone 3 always has
  0 regardless of actual ondisk undo space.

- Add zone=%2d info to existing failure/verbose printf which
  corresponds to the statistics.
sbin/hammer/cmd_blockmap.c