summaryrefslogtreecommitdiffstats
path: root/sbin/ggate/ggated/ggated.c
Commit message (Collapse)AuthorAgeFilesLines
* Add pidfile support to ggated(8)ngie2016-01-281-23/+38
| | | | | | | | | | | | | | | | | The tests will manipulate the system daemon today, which can cause undesired service interruption when the tests are run. This change allows the geom_gate tests to be run with an arbitrary ggated(8) daemon / geom_gate(4) device pairing. Other changes: - Sort #includes - Use a more common idiom for parsing options with getopt(3) Differential Revision: https://reviews.freebsd.org/D4836 MFC after: 2 weeks Reviewed by: bjk (manpages), pjd (maintainer timeout) Sponsored by: EMC / Isilon Storage Division
* If ggated's exports_find() fails, the connection is removed beforebrueffer2015-07-141-1/+1
| | | | | | | | | | | | | | (trying to) report the problem to the client. sendfail() is called with an already closed socket and thus it fails to inform the client about the problem. Fix this by calling sendfail() before connection_remove(). PR: 195944 Submitted by: Fabian Keil Reviewed by: pjd MFC after: 1 week
* Fix warnings found by -Wmising-variable-declarations.ed2012-10-191-3/+3
| | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
* Style nits.pjd2010-02-181-1/+1
|
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-2/+2
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* The signature for a pthread function requires that itmtm2008-06-261-0/+6
| | | | | | | | | | | return a pointer to a void. The send_thread() and disk_thread() funtions; however, do not have a return value because they run for the duration of the daemon's lifetime. This causes gcc to barf when running with -O3. Make these functions return a null pointer to quiet it. PR: bin/124342 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> (minus his comments) MFC after: 1 week
* Fix spellinggonzo2008-06-201-2/+2
| | | | | PR: kern/124723 Event: Bugathon#5
* For consistency use 'unsigned' instead of 'u_int'.pjd2006-12-181-1/+1
|
* Fix ggated for platforms with 64bit size_t. The DIOCGSECTORSIZE ioctlpjd2006-12-151-1/+1
| | | | | | | | returns u_int. Reported by: Javier Martín Rueda <jmrueda@diatel.upm.es> PR: amd64/91799 MFC after: 3 days
* Reimplement ggatec/ggated applications.pjd2005-07-081-236/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change communication protocol to be much more resistant on network problems and to allow for much better performance. Better performance is achieved by creating two connections between ggatec and ggated one for sending the data and one for receiving it. Every connection is handled by separeted thread, so there is no more synchronous data flow (send and wait for response), now one threads sends all requests and another receives the data. Use two threads in ggatec(8): - sendtd, which takes I/O requests from the kernel and sends them to the ggated daemon on the other end; - recvtd, which waits for ggated responses and forwards them to the kernel. Use three threads in ggated(8): - recvtd, which waits for I/O requests and puts them onto incoming queue; - disktd, which takes requests from the incoming queue, does disk operations and puts finished requests onto outgoing queue; - sendtd, which takes finished requests from the outgoing queue and sends responses back to ggatec. Because there were major changes in communication protocol, there is no backward compatibility, from now on, both client and server has to run on 5.x or 6.x (or at least ggated should be from the same FreeBSD version on which ggatec is running). For Gbit networks some buffers need to be increased. I use those settings: kern.ipc.maxsockbuf=16777216 net.inet.tcp.sendspace=8388608 net.inet.tcp.recvspace=8388608 and I use '-S 4194304 -R 4194304' options for both, ggatec and ggated. Approved by: re (scottl)
* Fix/clean up return values checking.pjd2004-09-081-11/+11
|
* Remove extra semicolon.pjd2004-06-021-1/+1
| | | | Inspired by: fjoe
* Include <sys/time.h> for the declaration of struct bintime instead ofbde2004-05-041-0/+1
| | | | | | depending on namespace pollution in <sys/stat.h>. struct bintime is only needed to satisfy leakage of kernel interfaces to userland and namespace bugs in those interfaces...
* Fix compiling on 64-bit architectures.pjd2004-05-021-1/+1
|
* GEOM Gate network daemon.pjd2004-04-301-0/+649
OpenPOWER on IntegriCloud