sys/vfs/hammer2: Don't use 1 byte size for 0 radix bits
authorTomohiro Kusumi <tkusumi@netbsd.org>
Mon, 19 Oct 2020 16:04:07 +0000 (01:04 +0900)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Tue, 20 Oct 2020 17:27:51 +0000 (02:27 +0900)
commit893aa36e0111c1418f260bd8d1092b7f22ea010e
tree2cd55559db0252b24a82552e034f73ce3c551b19
parent02bd3a924fe5e705d1d7587770851d27f011974d
sys/vfs/hammer2: Don't use 1 byte size for 0 radix bits

Not using 1 byte size for 0 radix bits is part of ondisk spec.
This may not be expected to happen in these cases, but other ones
always consider 0 radix or assert radix != 0.

--
 * WARNING! A radix of 0 (such as when data_off is all 0's) is a special
 *     case which means no data associated with the blockref, and
 *     not the '1 byte' it would otherwise calculate to.
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_io.c