summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove redundant space.pjd2011-10-171-1/+1
| | | | MFC after: 1 week
* When path to the configuration file is relative, obtain full path,pjd2011-10-171-0/+16
| | | | | | | so we can always find the file, even after daemonizing and changing working directory to /. MFC after: 1 week
* Correct typo.pjd2011-09-281-1/+1
| | | | MFC after: 3 days
* If the underlying provider doesn't support BIO_FLUSH, log it only oncepjd2011-09-284-4/+24
| | | | | | and don't bother trying in the future. MFC after: 3 days
* Break a bit earlier.pjd2011-09-281-0/+1
| | | | MFC after: 3 days
* After every activemap change flush disk's write cache, so that writepjd2011-09-286-7/+118
| | | | | | | | | | | | reordering won't make the actual write to be committed before marking the coresponding extent as dirty. It can be disabled in configuration file. If BIO_FLUSH is not supported by the underlying file system we log a warning and never send BIO_FLUSH again to that GEOM provider. MFC after: 3 days
* Use PJDLOG_ASSERT() and PJDLOG_ABORT() everywhere instead of assert().pjd2011-09-279-161/+192
| | | | MFC after: 3 days
* No need to wrap pjdlog functions around with KEEP_ERRNO() macro.pjd2011-09-271-2/+1
| | | | MFC after: 3 days
* - Convert some impossible conditions into assertions.pjd2011-09-271-11/+10
| | | | | | - Add missing 'if' in comment. MFC after: 3 days
* Correct two mistakes when converting asserts to PJDLOG_ASSERT()/PJDLOG_ABORT().pjd2011-09-271-4/+2
| | | | MFC after: 3 days
* Prefer PJDLOG_ASSERT() and PJDLOG_ABORT() over assert() and abort().pjd2011-09-273-33/+31
| | | | | | | pjdlog versions will log problem to syslog when application is running in background. MFC after: 3 days
* No need to use KEEP_ERRNO() macro around pjdlog functions, as they don'tpjd2011-09-272-23/+20
| | | | | | modify errno. MFC after: 3 days
* Ensure that pjdlog functions don't modify errno.pjd2011-09-271-0/+25
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud