git: hammer2 - dmsg blockdev work
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Oct 25 20:04:10 PDT 2012
commit ddfbb28327b89895f22ccf4c10952e6a0e2ca5de
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Oct 25 19:57:12 2012 -0700
hammer2 - dmsg blockdev work
* Adjust the LNK_CONN and LNK_SPAN messages to provide a cluster label
and a filesystem label instead of just a filesystem label.
* Change the cluster controller to index clusters based on the
peer_type, pfs_clid, and cl_label instead of just the pfs_clid.
HAMMER2 PFS's are primarily identified by pfs_clid and unique nodes
are identified by pfs_fsid. fs_label holds the HAMMER2 super-root
name.
BLOCK devices are primarily identified by cl_label and unique nodes
are identified by pfs_fsid. pfs_clid and fs_label are empty.
* Adjust the cluster controller's matching filters such that, e.g.
BLOCK device clients only have visibility to the BLOCK device server
for the cl_label in question, and do not have visibility to other
BLOCK device clients.
* Flesh out the hammer2 service daemons disk monitoring, have it attach
a pipe to the in-kernel disk via an ioctl().
* Continued work on the skeleton network disk exporter (kern/subr_disk*) and
network disk importer (dev/disk/xdisk/*). xdisk has not been added to the
build yet.
* Move a few more definitions from HAMMER2 to DMSG.
Summary of changes:
lib/libdmsg/msg_lnk.c | 136 ++++++---
sbin/hammer2/cmd_debug.c | 11 +-
sys/dev/disk/xdisk/Makefile | 6 +
sys/dev/disk/xdisk/xdisk.c | 472 ++++++++++++++++++++++++++++
sys/kern/kern_dmsg.c | 20 +-
sys/kern/subr_diskiocom.c | 7 +-
sys/sys/dmsg.h | 18 +-
sys/{bus/pci/pcibus.h => sys/xdiskioctl.h} | 34 ++-
sys/vfs/hammer2/hammer2_disk.h | 20 +-
sys/vfs/hammer2/hammer2_vfsops.c | 18 +-
10 files changed, 657 insertions(+), 85 deletions(-)
create mode 100644 sys/dev/disk/xdisk/Makefile
create mode 100644 sys/dev/disk/xdisk/xdisk.c
copy sys/{bus/pci/pcibus.h => sys/xdiskioctl.h} (74%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ddfbb28327b89895f22ccf4c10952e6a0e2ca5de
--
DragonFly BSD source repository
More information about the Commits
mailing list