sys/vfs/hammer: Keep root node signature on root split
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 26 Jul 2015 18:43:10 +0000 (03:43 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 27 Jul 2015 18:10:16 +0000 (03:10 +0900)
commitc461935cc9a3d110ed43ebd769c91338a06f04f9
tree98f9b89f34fcc5130022cc6decd5b717425e488d
parent08d797e2bae09396499d01babc8c2ae5e60457ee
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)
sbin/hammer/cmd_show.c
sys/vfs/hammer/hammer_btree.c
sys/vfs/hammer/hammer_btree.h