sbin/fsck_hammer2: Consider device size with less than 4 zones
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 22 Apr 2020 17:28:05 +0000 (02:28 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 22 Apr 2020 18:04:32 +0000 (03:04 +0900)
commit77ff482a4cef8783e47619af15842e57b3b8b6e0
treeef226976c9e4ce635cc06ebe80a646692914538e
parent34d72c0eadbec2bdb9d24370d8e57b10a962a5b5
sbin/fsck_hammer2: Consider device size with less than 4 zones

Unlike HAMMER1 which had volume size requirement, HAMMER2 allows
creation of small filesystem without having 4 zones for volume headers.
Make fsck_hammer2 also consider that, otherwise segfaults if the
device has less than 4 zones.
sbin/fsck_hammer2/test.c