git: hammer2 - Sync thread work
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Apr 5 18:08:29 PDT 2015
commit 8db69c9f9b62d5d19b87ae8118c82134fb954957
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Apr 5 18:04:46 2015 -0700
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.
Summary of changes:
sbin/hammer2/hammer2.8 | 24 ++-
sys/vfs/hammer2/hammer2.h | 86 ++++----
sys/vfs/hammer2/hammer2_chain.c | 14 +-
sys/vfs/hammer2/hammer2_cluster.c | 407 +++++++++++++++++++++++---------------
sys/vfs/hammer2/hammer2_flush.c | 21 +-
sys/vfs/hammer2/hammer2_syncthr.c | 390 ++++++++++++++++++++++++++++++++++--
6 files changed, 728 insertions(+), 214 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8db69c9f9b62d5d19b87ae8118c82134fb954957
--
DragonFly BSD source repository
More information about the Commits
mailing list