git: hammer2 - Add server-side disk advertisements

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Oct 25 16:04:31 PDT 2012


commit 185ace9331437cc6a4344ddda4153972049dbc86
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Oct 25 16:00:47 2012 -0700

    hammer2 - Add server-side disk advertisements
    
    * The hammer2 service demon now tracks disks and connects the cluster
      controller to each one.
    
    * Add a new ioctl to the subr_disk subsystem and add subr_diskiocom.c
      to implement it, associating a cluster controller messaging descriptor
      with a disk device.
    
    * disk device initiates LNK_CONN and LNK_SPAN.  Disk block devices now
      advertised through the spanning tree.  Nothing else implemented yet.

Summary of changes:
 lib/libdmsg/dmsg.h               |    2 +
 lib/libdmsg/msg_lnk.c            |   22 +++-
 lib/libdmsg/service.c            |    2 +
 sbin/hammer2/cmd_service.c       |  111 +++++++++++++++++
 sbin/hammer2/hammer2.h           |    2 +
 sys/conf/files                   |    1 +
 sys/kern/kern_dmsg.c             |   35 +++++-
 sys/kern/subr_disk.c             |   17 ++-
 sys/kern/subr_diskiocom.c        |  252 ++++++++++++++++++++++++++++++++++++++
 sys/sys/disk.h                   |   15 ++-
 sys/sys/diskslice.h              |    7 +-
 sys/sys/dmsg.h                   |    4 +-
 sys/vfs/hammer2/hammer2_vfsops.c |   34 +-----
 13 files changed, 456 insertions(+), 48 deletions(-)
 create mode 100644 sys/kern/subr_diskiocom.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/185ace9331437cc6a4344ddda4153972049dbc86


-- 
DragonFly BSD source repository



More information about the Commits mailing list