git: hammer2 hammer2 - Adjust chain lookup/iteration API, add readdir

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 12 16:52:54 PST 2012


commit e028fa747e9825425f74da7e9c57a50a82b48e82
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Feb 12 16:50:01 2012 -0800

    hammer2 - Adjust chain lookup/iteration API, add readdir
    
    * Adjust the chain lookup/iteration API to take a key range key_beg to key_end
      (inclusive), instead of a key/mask pair.
    
    * Add and initialize a parent inode pointer in hammer2_inode{}.
    
    * Adjust the directory key hash to always OR with 0x8000U in order to
      guarantee that some low valued codes remain unused so we can use them
      for pseudo directory cookies (for '.' and '..').
    
      newfs2_hammer is required on the test volume with this change.
    
    * Implement hammer2_vop_readdir().

Summary of changes:
 sbin/newfs_hammer2/newfs_hammer2.c |    8 ++
 sys/vfs/hammer2/hammer2.h          |    9 ++-
 sys/vfs/hammer2/hammer2_chain.c    |   71 +++++++++++++------
 sys/vfs/hammer2/hammer2_disk.h     |    4 +-
 sys/vfs/hammer2/hammer2_subr.c     |   43 ++++++++++++
 sys/vfs/hammer2/hammer2_vfsops.c   |    6 +-
 sys/vfs/hammer2/hammer2_vnops.c    |  134 +++++++++++++++++++++++++++++++++++-
 7 files changed, 243 insertions(+), 32 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list