git: sbin/hammer: Move two blockmap functions to hammer/blockmap.c

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Aug 22 10:53:22 PDT 2015


commit 86872a2a3e27f05d25085218854f44daa64b6171
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Aug 20 19:55:25 2015 +0900

    sbin/hammer: Move two blockmap functions to hammer/blockmap.c
    
    from hammer/ondisk.c.
    See sys/vfs/hammer/hammer_blockmap.c for details.
    
    alloc_blockmap() should be in hammer/blockmap.c than
    hammer/ondisk.c considering alloc_blockmap() is the
    userspace version of hammer_blockmap_alloc() in
    sys/vfs/hammer/hammer_blockmap.c which basically does
    the same thing. If blockmap_lookup() is located in
    hammer/blockmap.c then this one should be too.
    
    alloc_bigblock() is the userspace only function that is
    only used by newfs_hammer when newfs_hammer initially
    allocates the whole 8MB chunks, however since the idea
    of alloc_bigblock() is the same as alloc_blockmap()
    (difference in allocation size), it makes better sense
    to have this in hammer/blockmap.c as well.
    
    (There are other blockmap related functions but those
    are more of formatting initial ondisk image based on
    blockmap info than blockmap handling itself, so those
    should stay in hammer/ondisk.c)

Summary of changes:
 sbin/hammer/blockmap.c    | 174 +++++++++++++++++++++++++++++++++++++++++++++
 sbin/hammer/hammer_util.h |   3 +
 sbin/hammer/ondisk.c      | 177 ----------------------------------------------
 3 files changed, 177 insertions(+), 177 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/86872a2a3e27f05d25085218854f44daa64b6171


-- 
DragonFly BSD source repository



More information about the Commits mailing list