sbin/newfs_hammer: Minor fixes
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 18 Jul 2015 07:32:04 +0000 (16:32 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 18 Jul 2015 17:54:03 +0000 (02:54 +0900)
commitfac8cad69021402ba80df45825e7b057f6304833
treeb083e3978bf82cb0ad05faa7b12ddf255077caf3
parent963edea72368c08668ba9c074a0309c2b06274fb
sbin/newfs_hammer: Minor fixes

- It's better to call rel_volume() for the root volume here
  without waiting for potential non-root ones to do it as
  they all modifies the root volume.

- Also add assertions to ensure a caller calls this function
  for the root volume first, and then non-root volumes.
  (non-root volumes do += to these volume statistics)
sbin/newfs_hammer/newfs_hammer.c