hammer2 - Add peer_type field to LNK_CONN and LNK_SPAN
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 12 Aug 2012 02:32:03 +0000 (19:32 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 12 Aug 2012 02:32:03 +0000 (19:32 -0700)
commit2063f4d7f86db92463c7a0f971721a9f94d1ef14
tree4e98daf033947e5c7ed0cdae198fd2319a7bc110
parent80304d44e6d69a8e2e91976cfb9081d8b26d24db
hammer2 - Add peer_type field to LNK_CONN and LNK_SPAN

* Adds a peer_type field allowing connections to identify what they are
  (i.e. a HAMMER2 mount, a CLUSTER controller, a BLOCK device controller).

  Rename the pfs_type field in the volume header, which never made much
  sense, to peer_type, which now does make sense though for the moment
  the only value it can have is HAMER2_PEER_HAMMER2.

* Filter HAMMER2_PEER_HAMMER2 peer types by pfs_clid to reduce unnecessary
  LNK_SPAN traffic being transmitted to a HAMMER2 mount (in the kernel).

* Minor cleanup.
sbin/hammer2/cmd_service.c
sbin/hammer2/msg_lnk.c
sbin/hammer2/network.h
sbin/newfs_hammer2/newfs_hammer2.c
sys/vfs/hammer2/hammer2_disk.h
sys/vfs/hammer2/hammer2_network.h
sys/vfs/hammer2/hammer2_vfsops.c