sbin/hammer: Test volume version in __verify_volume()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 14 Apr 2017 12:46:56 +0000 (15:46 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 14 Apr 2017 19:07:40 +0000 (22:07 +0300)
commitc967446b57103173bbf944d25a36b8818bad00a1
tree0c978f66c9eff05d4a4849820ea564893feeddc1
parente5162b78a1ce64ba4003b8aa9d99bd629545afc2
sbin/hammer: Test volume version in __verify_volume()

Since now that HammerVersion is always used by CRC operations, and
blkdevs based hammer commands are likely to either test/set CRC,
the volume version should be checked after volume parameters are
loaded from ondisk volume header.

The reason for using >=WIP instead of >MAX is because that's how
newfs_hammer checks volume version, though it's currently the same
thing.
sbin/hammer/ondisk.c
sbin/mount_hammer/mount_hammer.c