summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
Commit message (Collapse)AuthorAgeFilesLines
* Now that ioctl(2) is allowed in capability mode and we can limit ioctls for thepjd2013-03-141-16/+48
| | | | | | | | | given descriptors, use Capsicum sandboxing for hastd in primary and secondary modes. Allow for DIOCGDELETE and DIOCGFLUSH ioctls on provider descriptor and for G_GATE_CMD_MODIFY, G_GATE_CMD_START, G_GATE_CMD_DONE and G_GATE_CMD_DESTROY on GEOM Gate descriptor. Sponsored by: The FreeBSD Foundation
* Minor corrections.pjd2013-03-141-4/+4
|
* Delete requests can be larger than MAXPHYS.pjd2013-03-141-1/+1
|
* Add i/o error counters to hastd(8) and make hastctl(8) displaytrociny2013-02-254-1/+65
| | | | | | | them. This may be useful for detecting problems with HAST disks. Discussed with and reviewed by: pjd MFC after: 1 week
* - Add support for 'memsync' mode. This is the fastest replication mode that'spjd2013-02-178-43/+334
| | | | | | | | | | why it will now be the default. - Bump protocol version to 2 and add backward compatibility for version 1. - Allow to specify hosts by kern.hostid as well (in addition to hostname and kern.hostuuid) in configuration file. Sponsored by: Panzura Tested by: trociny
* Fix socket calls on error post-r243965.kevlo2012-12-211-1/+1
| | | | Submitted by: Garrett Cooper
* Revert r228695. We use __func__ here as a format to distinguish betweenpjd2012-11-051-1/+1
| | | | | abort and assert. It would be cleaner to use NULL or "" here, but gcc complains in both cases.
* Metaflush on/off values don't need quotes.trociny2012-07-161-4/+4
| | | | | Reviewed by: pjd MFC after: 3 days
* Make use of GEOM Gate direct reads feature. This allows HAST to servepjd2012-07-041-1/+31
| | | | | | | | | | | | | | reads with native speed of the underlying provider. There are three situations when direct reads are not used: 1. Data is being synchronized and synchronization source is the secondary node, which means secondary node has more recent data and we should read from it. 2. Local read failed and we have to try to read from the secondary node. 3. Local component is unavailable and all I/O requests are served from the secondary node. Sponsored by: Panzura, http://www.panzura.com MFC after: 1 month
* Check if there is cmsg at all.pjd2012-07-011-1/+1
| | | | MFC after: 3 days
* Revert: r236909hselasky2012-06-111-1/+1
| | | | Pointyhat: me
* Use the correct clock source when computing timeouts.hselasky2012-06-111-1/+1
| | | | MFC after: 1 week
* Simplify the code by using snprlcat().pjd2012-06-031-27/+24
| | | | MFC after: 3 days
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-1/+1
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Fix world after byacc import:bapt2012-05-222-291/+296
| | | | | | | | - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse' Approved by: des (mentor)
* General mdoc(7) and typo fixes.gjb2012-05-121-2/+2
| | | | | | PR: 167804 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* If hastd is invoked with "-P pidfile" option always create pidfiletrociny2012-03-291-5/+7
| | | | | | | | | | | regardless of whether -F (foreground) option is set or not. Also, if -P option is specified, ignore pidfile setting from configuration not only on start but on reload too. This fixes the issue when for hastd run with -P option reload caused the pidfile change. Reviewed by: pjd MFC after: 1 week
* Fix typo.trociny2012-03-231-7/+7
| | | | MFC after: 3 days
* Nice range comparison.pjd2012-02-111-5/+3
| | | | MFC after: 3 days
* If a local write request is from the synchronization thread, when ittrociny2012-02-051-1/+2
| | | | | | | | | | | | | is synchronizing data that is out of date on the local component, we should not send G_GATE_CMD_DONE acknowledge to the kernel. This fixes the issue, observed in async mode, when on synchronization from the remote component the worker terminated with "G_GATE_CMD_DONE failed" error. Reported by: Artem Kajalainen <artem kayalaynen ru> Reviewed by: pjd MFC after: 1 week
* Fix the regression introduced in r226859: if the local component istrociny2012-02-051-1/+1
| | | | | | | | out of date BIO_READ requests got lost instead of being sent to the remote component. Reviewed by: pjd MFC after: 1 week
* Fix typo in comment.pjd2012-02-041-1/+1
| | | | MFC after: 3 days
* - Fix documentation to note that /etc/hast.conf is the default configurationpjd2012-01-241-4/+6
| | | | | | | | file for hastd(8) and hastctl(8) and not hast.conf. - In copyright statement correct that this file is documentation, not software. - Bump date. MFC after: 3 days
* Free memory that won't be used in child.pjd2012-01-221-3/+7
| | | | MFC after: 1 week
* Fix minor memory leak.pjd2012-01-211-0/+1
| | | | MFC after: 3 days
* Remove another unused token.pjd2012-01-201-1/+1
| | | | MFC after: 3 days
* Remove unused token 'port'.pjd2012-01-202-2/+1
| | | | MFC after: 3 days
* Style cleanups.pjd2012-01-131-6/+11
| | | | MFC after: 3 days
* - Fix a bug where pidfile was removed in SIGHUP when it hasn't changed inpjd2012-01-101-4/+8
| | | | | | | configuration file. - Log the fact that pidfile has changed. MFC after: 3 days
* For functions that return -1 on failure check exactly for -1 and not forpjd2012-01-1016-135/+135
| | | | | | any negative number. MFC after: 3 days
* Don't touch pidfiles when running in foreground. Before that change wepjd2012-01-101-11/+19
| | | | | | would create an empty pidfile on start and check if it changed on SIGHUP. MFC after: 3 days
* Spelling fixes for sbin/uqs2012-01-076-9/+9
|
* fork(2) returns -1 on failure, not some random negative number.pjd2012-01-062-2/+2
| | | | MFC after: 3 days
* Constify argument.pjd2012-01-062-2/+2
| | | | MFC after: 3 days
* Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignmentdim2011-12-191-0/+1
| | | | | | | warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and there they can be safely ignored. MFC after: 1 week
* Use lex's standard way of not generating unused function.pjd2011-12-182-3/+3
| | | | | Inspired by: r228555 MFC after: 1 week
* Don't use function name as format string.pjd2011-12-181-1/+1
| | | | | Detected by: clang MFC after: 1 week
* Remove redundant assignment.pjd2011-12-151-2/+0
| | | | | Found by: Clang Static Analyzer MFC after: 1 week
* Simplify code by changing functions types from int to avoid, as the functionspjd2011-12-151-15/+6
| | | | | | | always return 0. Found by: Clang Static Analyzer MFC after: 1 week
* Remove redundant setting of the error variable.pjd2011-12-151-2/+0
| | | | | Found by: Clang Static Analyzer MFC after: 1 week
* Remove redundant space.pjd2011-10-271-1/+1
| | | | MFC after: 3 days
* Implement 'async' mode for HAST.pjd2011-10-273-55/+81
| | | | MFC after: 3 days
* Minor cleanups.pjd2011-10-271-1/+2
| | | | MFC after: 3 days
* Reduce indentation.pjd2011-10-271-24/+24
| | | | MFC after: 3 days
* Improve comment so it doesn't suggest race is possible, but that we handlepjd2011-10-271-1/+1
| | | | | | the race. MFC after: 3 days
* - Eliminate the need for hio_nv.pjd2011-10-271-25/+55
| | | | | | | - Introduce hio_clear() function for clearing hio before returning it onto free queue. MFC after: 3 days
* Monor cleanups.pjd2011-10-271-6/+7
| | | | MFC after: 3 days
* Delay resuid generation until first connection to secondary, not until firstpjd2011-10-271-6/+3
| | | | | | | write. This way on first connection we will synchronize only the extents that were modified during the lifetime of primary node, not entire GEOM provider. MFC after: 3 days
* Correct comments.pjd2011-10-271-3/+3
| | | | MFC after: 3 days
* Allow to specify pidfile in HAST configuration file.pjd2011-10-175-14/+116
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud