sbin/hammer: Redo e4323571 partly (after reverted by 03d5db37)
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 17 Dec 2016 22:52:26 +0000 (07:52 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 17 Dec 2016 22:59:51 +0000 (07:59 +0900)
commit830ab40ea2a8b8fce135ffb006867ebf09f3031a
treecab9ea46fa31dc297b5bed44977001d862a41e85
parent03d5db37cafa1ddf36b510978249cabc102eb0a0
sbin/hammer: Redo e4323571 partly (after reverted by 03d5db37)

> sbin/hammer: Fix bug in get_buffer_data()
>
> The previous commit made clear that xor part of get_buffer_data()
> was wrong. Since buf_offset is in any zone not limited to zone-2,
> xor of two offsets doesn't necessarily show the right result to
> know whether they belong to the same buffer, even if ->zone2_offset
> is originally translated from the same zone within the same buffer.
>
> It needs to take xor of long offsets instead of full 64 bits.
sbin/hammer/ondisk.c