sbin/hammer: Make volume count test optional for blkdevs based commands
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 13 Apr 2017 18:48:16 +0000 (21:48 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 13 Apr 2017 21:35:50 +0000 (00:35 +0300)
commit6f3c8414f4d4746c8d9d9e6f46f7af3eac34f36c
tree9b52c638ff5949b30411220258c3a065979cdd7a
parentd5ac093c363a8c5888c7760f1558b0da8de6e014
sbin/hammer: Make volume count test optional for blkdevs based commands

This is basically for feature enhancement of hammer strip command
in the next commit. No functional change by this commit.

Some blkdevs based commands need to be able to handle broken volume
headers by omitting volume verification (to certain extent). It has
been that way for the volume header contents, but not for volume
count as well as checking existence of root volume.
sbin/hammer/hammer.c
sbin/hammer/hammer_util.h
sbin/hammer/ondisk.c