git: sbin/hammer: Test volume version in __verify_volume()
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Fri Apr 14 12:07:55 PDT 2017
commit c967446b57103173bbf944d25a36b8818bad00a1
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Fri Apr 14 15:46:56 2017 +0300
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.
Summary of changes:
sbin/hammer/ondisk.c | 6 ++++++
sbin/mount_hammer/mount_hammer.c | 6 ++++++
2 files changed, 12 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c967446b57103173bbf944d25a36b8818bad00a1
--
DragonFly BSD source repository
More information about the Commits
mailing list