git: sys/vfs/hammer: Fix and add comments on root inode

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Feb 26 09:42:52 PST 2015


commit dc241916e10102adde2a9c28e3cd7927ce184206
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Feb 26 20:25:59 2015 +0900

    sys/vfs/hammer: Fix and add comments on root inode
    
    - hunk1 - The root inode uses HAMMER_DEF_LOCALIZATION for its
      onmemory ip(inode) localization, however the purpose of this macro
      is not documented anywhere. Make it clear by adding this comment.
    
    - hunk2 - Show HAMMER_OBJID_ROOT is the root inode # for both real
      root inode and PFS root inodes.
    
    - hunk3-4 - Change "stored in the root inode" to "associated with
      the root inode". PFS records are not embedded within the ondisk
      inode structure, but associated with the root inode by id.
      Commit ea434b6f uses "associated with" in its commit message.

Summary of changes:
 sys/vfs/hammer/hammer_btree.h | 3 +++
 sys/vfs/hammer/hammer_disk.h  | 2 +-
 sys/vfs/hammer/hammer_inode.c | 8 ++++++--
 3 files changed, 10 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dc241916e10102adde2a9c28e3cd7927ce184206


-- 
DragonFly BSD source repository



More information about the Commits mailing list