DragonFly commits List (threaded) for 2012-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: hammer2 hammer2 - More work on userland hammer2 msg infrastructure
commit 1b195a982651cc65fe202f626320cf1368df1422
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Thu Jul 5 22:36:01 2012 -0700
hammer2 - More work on userland hammer2 msg infrastructure
* When a link error occurs generate a LNK_ERROR message for each transaction
before setting the iocom ERROR flag and returning the final
non-transactional LNK_ERROR.
* Processing command switches switch on the original transactional head.cmd
instead of the current msg->any.head.cmd, which allows the use of mixed
cmd's in a transactional message stream.
The target function then handles the actual msg->any.head.cmd. Thus we
can consolidate all sub-commands used within a transaction into the target
function, which greatly improves code quality.
This allows us to send LNK_ERROR messages over active transactions.
* Print the pfs_id and label for the received LNK_SPAN message the kernel
sends to the userland hammer2 service process, and verify LNK_ERROR
processing for connection terminations. Yup, it works.
Summary of changes:
sbin/hammer2/cmd_service.c | 86 ++++++++++++++++++++++++++++++++++++++++---
sbin/hammer2/msg.c | 83 ++++++++++++++++++++++++++++++++----------
sbin/hammer2/network.h | 2 +-
3 files changed, 145 insertions(+), 26 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1b195a982651cc65fe202f626320cf1368df1422
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]