git: hammer2 - Revamp hammer2_cluster structure part 1

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Sep 30 15:43:43 PDT 2013


commit 7bed8d7ea59c2d7092f0f8d8bb187f54f34d5045
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Sep 30 15:31:14 2013 -0700

    hammer2 - Revamp hammer2_cluster structure part 1
    
    * Adjust the hammer2_cluster structure to track multiple chains (and thus
      multiple mount points).  Use cases still just pull out one chain.
    
    * Remove schain from hammer2_mount, leaving just sroot.  The cached chain
      structure isn't useful because it doesn't track delete-duplicate
      operations.  Use sroot for basing functions.
    
    * Mark pfs-mount chains with the PFSROOT flag and propagate through
      duplications to detect when a snapshot should inherit the PFS
      cluster id or not.

Summary of changes:
 sys/vfs/hammer2/hammer2.h        |  39 ++--
 sys/vfs/hammer2/hammer2_chain.c  |  62 +++---
 sys/vfs/hammer2/hammer2_flush.c  |   8 +-
 sys/vfs/hammer2/hammer2_inode.c  |   4 +-
 sys/vfs/hammer2/hammer2_ioctl.c  |  33 +--
 sys/vfs/hammer2/hammer2_vfsops.c | 453 ++++++++++++++++++++-------------------
 sys/vfs/hammer2/hammer2_vnops.c  |   2 +-
 7 files changed, 307 insertions(+), 294 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7bed8d7ea59c2d7092f0f8d8bb187f54f34d5045


-- 
DragonFly BSD source repository



More information about the Commits mailing list