git: sbin/hammer: Redo e4323571 partly (after reverted by 03d5db37)

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Dec 17 15:11:59 PST 2016


commit 830ab40ea2a8b8fce135ffb006867ebf09f3031a
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Dec 18 07:52:26 2016 +0900

    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.

Summary of changes:
 sbin/hammer/ondisk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/830ab40ea2a8b8fce135ffb006867ebf09f3031a


-- 
DragonFly BSD source repository



More information about the Commits mailing list