git: hammer2 - Refactor frontend part 16/many

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 27 10:42:56 PDT 2015


commit b7add6753e221920947c96fab3314c39a2f67fe4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jun 27 10:34:48 2015 -0700

    hammer2 - Refactor frontend part 16/many
    
    * Replace cluster ops with more frontend/backend XOPs.  Use XOPs to
      resolve the root inode, handle the hidden directory, create the
      hidden directory, and to run the unlinkq in the hidden directory.
    
    * Cleanup additional cluster ops that can use ip->meta instead.
    
    * Simplify hammer2_inode_unlock(), it is no longer cluster-centric so
      do not pass-in a cluster to unlock and drop.
    
    * hammer2 show - dump pfs fields for the super-root
    
    * hammer2 set* directives, change the HAMMER2IOC_INODE_SET API slightly.
    
    * newfs_hammer2 - name the super root directory for show output convenience.

Summary of changes:
 sbin/hammer2/cmd_debug.c           |   3 +-
 sbin/hammer2/cmd_setcheck.c        |   1 +
 sbin/hammer2/cmd_setcomp.c         |   1 +
 sbin/newfs_hammer2/newfs_hammer2.c |   7 +-
 sys/vfs/hammer2/hammer2.h          |  65 ++++---
 sys/vfs/hammer2/hammer2_chain.c    |  11 ++
 sys/vfs/hammer2/hammer2_cluster.c  | 153 +--------------
 sys/vfs/hammer2/hammer2_inode.c    | 375 ++++++++++++++++++++++---------------
 sys/vfs/hammer2/hammer2_iocom.c    |   8 +-
 sys/vfs/hammer2/hammer2_ioctl.c    | 259 +++++++++++++------------
 sys/vfs/hammer2/hammer2_ioctl.h    |   2 +
 sys/vfs/hammer2/hammer2_thread.c   |   4 +-
 sys/vfs/hammer2/hammer2_vfsops.c   | 233 +++++++++++++----------
 sys/vfs/hammer2/hammer2_vnops.c    | 207 +++++++-------------
 sys/vfs/hammer2/hammer2_xops.c     |  83 +++++++-
 15 files changed, 711 insertions(+), 701 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list