git: hammer2 - Start adding internal cluster API

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Mar 18 09:38:43 PDT 2014


commit 278ab2b27e913575840951f625eb2d8620aafa34
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Mar 18 09:35:21 2014 -0700

    hammer2 - Start adding internal cluster API
    
    Initial addition of the cluster API.  H2 will be non-operational until this
    is stabilized.  Adding the cluster API will require a few stages.  This first
    stage is to add the API and make it work under degenerate (single-target)
    conditions.
    
    The hammer2_cluster structure collects and manages an array of up to
    8 chains representing mirrors / cluster nodes / copies of the same point
    in the topology.
    
    * Add hammer2_cluster.c, and hammer2_cluster_t
    
    * Replace nearly all high-level (vnops, vfsops) chain calls with
      cluster calls.

Summary of changes:
 sys/vfs/hammer2/Makefile          |   2 +-
 sys/vfs/hammer2/TODO              |   9 +
 sys/vfs/hammer2/hammer2.h         | 284 +++++++----
 sys/vfs/hammer2/hammer2_chain.c   | 244 +++-------
 sys/vfs/hammer2/hammer2_cluster.c | 784 +++++++++++++++++++++++++++++++
 sys/vfs/hammer2/hammer2_flush.c   |   8 +-
 sys/vfs/hammer2/hammer2_freemap.c |   6 +-
 sys/vfs/hammer2/hammer2_inode.c   | 965 ++++++++++++++++++++------------------
 sys/vfs/hammer2/hammer2_io.c      |  12 +-
 sys/vfs/hammer2/hammer2_ioctl.c   | 166 ++++---
 sys/vfs/hammer2/hammer2_subr.c    |  49 +-
 sys/vfs/hammer2/hammer2_vfsops.c  | 513 ++++++++++++--------
 sys/vfs/hammer2/hammer2_vnops.c   | 838 ++++++++++++++++-----------------
 13 files changed, 2392 insertions(+), 1488 deletions(-)
 create mode 100644 sys/vfs/hammer2/hammer2_cluster.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/278ab2b27e913575840951f625eb2d8620aafa34


-- 
DragonFly BSD source repository



More information about the Commits mailing list