git: sbin/hammer: Fix boundary check

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Jul 17 09:50:04 PDT 2015


commit 1bda0b52a2188ce1adefe6530241de89ebb48fc4
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Jul 16 02:45:41 2015 +0900

    sbin/hammer: Fix boundary check
    
    - It should be (next_offset + bytes - 1).
    
    - alloc_blockmap() has only been used by newfs_hammer for root
      inode, btree root node, and pfs0 metadata, and these don't
      cross 16KB boundary so there hasn't been any issue.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1bda0b52a2188ce1adefe6530241de89ebb48fc4


-- 
DragonFly BSD source repository



More information about the Commits mailing list