hammer2 - SPAN protocol work
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Aug 2012 04:28:40 +0000 (21:28 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 Aug 2012 04:28:40 +0000 (21:28 -0700)
commit02454b3e8645dc6a4eab40490ef946de38868c98
tree1985cadf22d18a77f47da2e46e3c3229d82d25ca
parent71df5c4d541ee1c5b168752e516f7167d785d8a1
hammer2 - SPAN protocol work

* Initial implementation of the LNK_SPAN protocol between two hammer
  service daemons running on different machines.  There's still lots to do.

  mount x P PFSs (P pipes) (machine A)
|
  service daemon  (machine A) (handling P + 1 connections)
|
  INET SOCKET
|
  service daemon (machine B) (handling Q + 1 connections)
|
  mount x Q PFSs (Q pipes) (machine B)

* Service deamons starts with LNK_CONN and then interconnect SPANs.

* SPAN protocol allows any number of connections between services daemons and
  from service daemons to physical HAMMER2 mounts.

* Fixed a message write() sequencing bug

* Added some additional debug directives, and also added a remote debug
  directive to connect from one already-running service daemon to another.
sbin/hammer2/cmd_debug.c
sbin/hammer2/cmd_service.c
sbin/hammer2/crypto.c
sbin/hammer2/hammer2.h
sbin/hammer2/icrc.c
sbin/hammer2/main.c
sbin/hammer2/msg.c
sbin/hammer2/msg_lnk.c
sbin/hammer2/network.h
sbin/hammer2/subs.c