commit 8d6d37b8ec43578679de9fefdfc9fd5fea549925 Author: Matthew Dillon <dil...@apollo.backplane.com> Date: Sun Dec 2 21:40:13 2012 -0800
cluster - Major kernel component work (diskiocom, xdisk, kdmsg) * Major implementation and stabilization work. Fix lots of bugs, improve the AUTO flags and APIs. * xdisk and diskiocom are now operational for the first time. xdisk is a consumer of remote block devices. You pass it one end of a pipe and use an ioctl to create /dev/xa* devices. The kernel's nominal disk management subsystem handles /dev/serno/* and will also probe the /dev/xa* devices to create the slices. diskiocom is a block device service. An ioctl is used to connect a raw disk device to the network via a pipe. * The hammer2 service demon ties the two together over the network. * Initial testing with a local hammer2 service daemon looping da0 to xa0 succeeded, ~46MB/sec unoptimized using dd. Summary of changes: lib/libdmsg/msg.c | 9 +- lib/libdmsg/msg_lnk.c | 11 +- lib/libdmsg/service.c | 6 +- sbin/hammer2/cmd_debug.c | 2 + sbin/hammer2/cmd_service.c | 1 + sys/dev/disk/xdisk/xdisk.c | 140 ++++++---- sys/kern/kern_dmsg.c | 671 ++++++++++++++++++++++++++++++++------------ sys/kern/subr_diskiocom.c | 462 +++++++++++++++++++++++++++++- sys/sys/dmsg.h | 74 ++++-- 9 files changed, 1092 insertions(+), 284 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d6d37b8ec43578679de9fefdfc9fd5fea549925 -- DragonFly BSD source repository