#
330449 |
|
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended.
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
237931 |
|
01-Jul-2012 |
pjd |
Check if there is cmsg at all.
MFC after: 3 days
|
#
229945 |
|
10-Jan-2012 |
pjd |
For functions that return -1 on failure check exactly for -1 and not for any negative number.
MFC after: 3 days
|
#
223143 |
|
16-Jun-2011 |
sobomax |
Revert r222688.
Requested by: Mikolaj Golub
|
#
222688 |
|
04-Jun-2011 |
sobomax |
Read from the socket using the same max buffer size as we use while sending. What happens otherwise is that the sender splits all the traffic into 32k chunks, while the receiver is waiting for the whole packet. Then for a certain packet sizes, particularly 66607 bytes in my case, the communication stucks to secondary is expecting to read one chunk of 66607 bytes, while primary is sending two chunks of 32768 bytes and third chunk of 1071. Probably due to TCP windowing and buffering the final chunk gets stuck somewhere, so neither server not client can make any progress.
This patch also protect from short reads, as according to the manual page there are some cases when MSG_WAITALL can give less data than expected.
MFC after: 3 days
|
#
220273 |
|
02-Apr-2011 |
pjd |
Handle ENOBUFS on send(2) by retrying for a while and logging the problem.
MFC after: 1 week
|
#
220272 |
|
02-Apr-2011 |
pjd |
When we are operating on blocking socket and get EAGAIN on send(2) or recv(2) this means that request timed out. Translate the meaningless EAGAIN to ETIMEDOUT to give administrator a hint that he might need to increase timeout in configuration file.
MFC after: 1 month
|
#
220270 |
|
02-Apr-2011 |
pjd |
Allow to disable sends or receives on a socket using shutdown(2) by interpreting NULL 'data' argument passed to proto_common_send() or proto_common_recv() as a will to do so.
MFC after: 1 month
|
#
219669 |
|
15-Mar-2011 |
pjd |
Remove #include needed for debugging.
MFC after: 1 week
|
#
218194 |
|
02-Feb-2011 |
pjd |
- Rename proto_descriptor_{send,recv}() functions to proto_connection_{send,recv} and change them to return proto_conn structure. We don't operate directly on descriptors, but on proto_conns. - Add wrap method to wrap descriptor with proto_conn. - Remove methods to send and receive descriptors and implement this functionality as additional argument to send and receive methods.
MFC after: 1 week
|
#
218148 |
|
31-Jan-2011 |
pjd |
Fix build on ia64.
I found no way how to use CMSG_NXTHDR() macro on ia64 without alignment warnings.
MFC after: 1 week
|
#
218147 |
|
31-Jan-2011 |
pjd |
Until I fix the build on ia64 comment out problematic lines. Those lines are part of the (for now) unused functions.
|
#
218139 |
|
31-Jan-2011 |
pjd |
Implement two new functions for sending descriptor and receving descriptor over UNIX domain sockets and socket pairs. This is in preparation for capsicum.
MFC after: 1 week
|
#
218138 |
|
31-Jan-2011 |
pjd |
- Use pjdlog for assertions and aborts as this will log assert/abort message to syslog if we run in background. - Asserts in proto.c that method we want to call is implemented and remove dummy methods from protocols implementation that are only there to abort the program with nice message.
MFC after: 1 week
|
#
211452 |
|
18-Aug-2010 |
pjd |
For some setups sending data in 128kB chunks makes communication very slow. No idea why. 32kB on the other hand seems to work properly everywhere.
Reported by: Thomas Steen Rasmussen <thomas@gibfest.dk> MFC after: 3 weeks
|
#
207371 |
|
29-Apr-2010 |
pjd |
Fix a problem where hastd will stuck in recv(2) after sending request to secondary, which died between send(2) and recv(2). Do it by adding timeout to recv(2) for primary incoming and outgoing sockets and secondary outgoing socket.
Reported by: Mikolaj Golub <to.my.trociny@gmail.com> Tested by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
|
#
204076 |
|
18-Feb-2010 |
pjd |
Please welcome HAST - Highly Avalable Storage.
HAST allows to transparently store data on two physically separated machines connected over the TCP/IP network. HAST works in Primary-Secondary (Master-Backup, Master-Slave) configuration, which means that only one of the cluster nodes can be active at any given time. Only Primary node is able to handle I/O requests to HAST-managed devices. Currently HAST is limited to two cluster nodes in total.
HAST operates on block level - it provides disk-like devices in /dev/hast/ directory for use by file systems and/or applications. Working on block level makes it transparent for file systems and applications. There in no difference between using HAST-provided device and raw disk, partition, etc. All of them are just regular GEOM providers in FreeBSD.
For more information please consult hastd(8), hastctl(8) and hast.conf(5) manual pages, as well as http://wiki.FreeBSD.org/HAST.
Sponsored by: FreeBSD Foundation Sponsored by: OMCnet Internet Service GmbH Sponsored by: TransIP BV
|