git: hammer2 - Messaging layer separation work part 2

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 24 23:28:25 PDT 2012


commit 0c3a8cd0eb169fa13895a5691f9a1c298c489721
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 24 23:26:40 2012 -0700

    hammer2 - Messaging layer separation work part 2
    
    * Move most of the low-level message handling from the hammer2 utility
      to a new library called libdmsg.
    
    * Move additional message headers from the hammer2 vfs code to libdmsg,
      cleanup.
    
    * Rename and reorganize a ton of stuff.

Summary of changes:
 lib/Makefile                                       |    1 +
 lib/libdmsg/Makefile                               |   10 +
 {sbin/hammer2 => lib/libdmsg}/crypto.c             |  235 +++---
 lib/libdmsg/debug.c                                |  260 +++++++
 lib/libdmsg/dmsg.h                                 |  412 ++++++++++
 .../hammer2_mount.h => lib/libdmsg/dmsg_local.h    |   47 +-
 .../hammer2/hammer2_icrc.c => lib/libdmsg/icrc.c   |   15 +-
 {sbin/hammer2 => lib/libdmsg}/msg.c                |  785 ++++++++------------
 {sbin/hammer2 => lib/libdmsg}/msg_lnk.c            |  240 +++---
 lib/libdmsg/service.c                              |  237 ++++++
 .../hammer2/hammer2_mount.h => lib/libdmsg/subs.c  |   91 ++-
 sbin/hammer2/Makefile                              |    7 +-
 sbin/hammer2/cmd_debug.c                           |  144 +---
 sbin/hammer2/cmd_rsa.c                             |    4 +
 sbin/hammer2/cmd_service.c                         |  148 +----
 sbin/hammer2/hammer2.h                             |   80 +--
 sbin/hammer2/main.c                                |    2 +-
 sbin/hammer2/network.h                             |  306 --------
 sbin/hammer2/subs.c                                |   70 +--
 share/mk/bsd.libnames.mk                           |    1 +
 sys/sys/dmsg.h                                     |    9 +-
 sys/vfs/hammer2/hammer2.h                          |    3 +
 sys/vfs/hammer2/hammer2_disk.h                     |   19 +-
 sys/vfs/hammer2/hammer2_icrc.c                     |    5 +-
 sys/vfs/hammer2/hammer2_mount.h                    |    2 -
 25 files changed, 1631 insertions(+), 1502 deletions(-)
 create mode 100644 lib/libdmsg/Makefile
 rename {sbin/hammer2 => lib/libdmsg}/crypto.c (76%)
 create mode 100644 lib/libdmsg/debug.c
 create mode 100644 lib/libdmsg/dmsg.h
 copy sys/vfs/hammer2/hammer2_mount.h => lib/libdmsg/dmsg_local.h (70%)
 copy sys/vfs/hammer2/hammer2_icrc.c => lib/libdmsg/icrc.c (95%)
 rename {sbin/hammer2 => lib/libdmsg}/msg.c (73%)
 rename {sbin/hammer2 => lib/libdmsg}/msg_lnk.c (86%)
 create mode 100644 lib/libdmsg/service.c
 copy sys/vfs/hammer2/hammer2_mount.h => lib/libdmsg/subs.c (54%)
 delete mode 100644 sbin/hammer2/network.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c3a8cd0eb169fa13895a5691f9a1c298c489721


-- 
DragonFly BSD source repository



More information about the Commits mailing list