hammer2 - Sync thread work
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 6 Apr 2015 01:04:46 +0000 (18:04 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 6 Apr 2015 01:04:46 +0000 (18:04 -0700)
commit8db69c9f9b62d5d19b87ae8118c82134fb954957
treec30e3a42376c807e8acddaa24a05c8d6574e9c52
parentd1f6206a05b5b0c79882fa6d3f0df5a04ddb226e
hammer2 - Sync thread work

* Initial syncthread coding, still many issues to resolve, particularly
  with the handling of mirror_tid, but it was able to successfully
  synchronized a MASTER to a SLAVE.

* Add more features to the hammer2_cluster*() API and structures and fix
  a couple of bugs in hammer2_cluster_lookup() and hammer2_cluster_next().

* Add hammer2_cluster_next_single_chain() for advancing one element of
  a cluster structure.  Used to advance past a chain which the sync code
  must delete on a slave.

* Fix a bug in hammer2_chain_lookup() when HAMMER2_LOOKUP_NOLOCK is used.
sbin/hammer2/hammer2.8
sys/vfs/hammer2/hammer2.h
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_cluster.c
sys/vfs/hammer2/hammer2_flush.c
sys/vfs/hammer2/hammer2_syncthr.c