git: sys/vfs/hammer: Keep root node signature on root split

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Jul 27 11:17:42 PDT 2015


commit c461935cc9a3d110ed43ebd769c91338a06f04f9
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Mon Jul 27 03:43:10 2015 +0900

    sys/vfs/hammer: Keep root node signature on root split
    
    - newfs_hammer sets a signature value for the root btree node
      so keep that signature on root node split along with other
      fields being copied to the new root node. This doesn't affect
      the existing fs as it's used for nothing.
    
    - (The former root node signature is not cleared on root split,
      so every node that has once been the root has the signature.
      The one at the lowest zone offset is the original one unless
      moved by reblock)

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

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list