]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/pc98/pc98/machdep.c
Convert devd's client socket to type SOCK_SEQPACKET.
authorAlan Somers <asomers@FreeBSD.org>
Thu, 14 Aug 2014 22:33:56 +0000 (22:33 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 14 Aug 2014 22:33:56 +0000 (22:33 +0000)
commitcdfa64aaeb859ef61a2e4a5cdf7aae7965c14533
treec8d1cc74dacd9acb180d0594625e77b0a617569c
parent990c2e5c9e0efebfaf99a1d5cbc62eb61f35561a
parentd931b81aeb0657b9739c3a80e9a83dba9118b30d
Convert devd's client socket to type SOCK_SEQPACKET.

This change consists of two merges from projects/zfsd/head along with the
addition of an ATF test case for the new functionality.

sbin/devd/tests/Makefile
sbin/devd/tests/client_test.c
Add ATF test cases for reading events from both devd socket types.

r266519:
sbin/devd/devd.8
sbin/devd/devd.cc
Create a new socket, of type SOCK_SEQPACKET, for communicating with
clients. SOCK_SEQPACKET sockets preserve record boundaries,
simplying code in the client. The old SOCK_STREAM socket is retained
for backwards-compatibility with existing clients.

r269993:
sbin/devd/devd.8
Fix grammar bug.

CR: https://reviews.freebsd.org/rS266519
MFC after: 5 days
Sponsored by: Spectra Logic
etc/mtree/BSD.tests.dist
sbin/devd/Makefile
sbin/devd/devd.8
sbin/devd/tests/Makefile
sbin/devd/tests/client_test.c