Ulrich Spörlein
b2d89ed701
gsched(8): fix example usage, mdoc nits
...
- ad0 was referred to as da0
- wrong parameter -s instead of -a in example
- use double quotes consistently
PR: docs/150082
Submitted by: N.J. Mann <njm@njm.me.uk>
MFC after: 2 weeks
2010-08-29 11:32:41 +00:00
Rebecca Cran
e7f8dd75b3
Fix incorrect usage of 'assure' and 'insure'.
...
Approved by: rrs (mentor)
2010-08-28 16:32:01 +00:00
Pawel Jakub Dawidek
5da2320932
When SIGTERM or SIGINT is received, terminate worker processes.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 21:28:02 +00:00
Pawel Jakub Dawidek
4767ee29f1
When logging to stdout/stderr, flush after each log.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 21:26:55 +00:00
Pawel Jakub Dawidek
b9cf0cf5fa
Correct when we log interrupted synchronization.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 21:20:32 +00:00
Pawel Jakub Dawidek
eba09893fd
Check if no signals were delivered just before going to sleep.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 20:49:06 +00:00
Pawel Jakub Dawidek
01125a9381
Add hooks execution.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 20:48:12 +00:00
Pawel Jakub Dawidek
ac59403c39
Document new 'exec' parameter.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 15:20:31 +00:00
Pawel Jakub Dawidek
0becad39a7
Allow to execute specified program on various HAST events.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 15:16:52 +00:00
Pawel Jakub Dawidek
1cdaf10c45
- Run hooks in background - don't block waiting for them to finish.
...
- Keep all hooks we're running in a global list, so we can report when
they finish and also report when they are running for too long.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:38:12 +00:00
Pawel Jakub Dawidek
e64887c4d6
When logging to stdout/stderr don't close those descriptors after fork().
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:35:39 +00:00
Pawel Jakub Dawidek
3f828c18e5
Reduce indent where possible.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:28:39 +00:00
Pawel Jakub Dawidek
f7fe83f9f8
Implement keepalive mechanism inside HAST protocol so we can detect secondary
...
node failures quickly for HAST resources that are rarely modified.
Remove XXX from a comment now that the guard thread never sleeps infinitely.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:26:37 +00:00
Pawel Jakub Dawidek
8f8c798c13
- Remove redundant and incorrect 'old' word from debug message.
...
- Log disconnects as warnings.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:12:53 +00:00
Pawel Jakub Dawidek
e23d2d0187
Don't increase number synchronized bytes in case of an error.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:10:25 +00:00
Pawel Jakub Dawidek
53d9b386eb
Log that synchronization was interrupted in a proper place.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:08:10 +00:00
Pawel Jakub Dawidek
55ce1e7c8b
We have sync_start() function to start synchronization, introduce sync_stop()
...
function to stop it.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:06:00 +00:00
Pawel Jakub Dawidek
16bd7026a2
Add QUEUE_INSERT() and QUEUE_TAKE() macros that simplify the code a bit.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 14:01:28 +00:00
Pawel Jakub Dawidek
6e5f008ac4
Add mtx_owned() implementation.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 13:58:38 +00:00
Pawel Jakub Dawidek
7087d13fae
Make comment more readable.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-27 13:54:17 +00:00
Jaakko Heinonen
e45d37b2e9
Don't attempt to write label with GEOM_BSD based method if the class is
...
not available. This improves error reporting when bsdlabel(8) is unable
to open a device for writing. If GEOM_BSD was unavailable, only a rather
obscure error message "Class not found" was printed.
PR: bin/58390
Reviewed by: ae
Discussed with: marcel
MFC after: 1 month
2010-08-27 11:08:11 +00:00
Warner Losh
25faff346c
MFtbemd:
...
Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
2010-08-23 22:24:11 +00:00
Dag-Erling Smørgrav
35efcc8b69
expand_number(3) takes a uint64_t * now; intmax_t was never correct
...
except by accident.
MFC after: 3 weeks
2010-08-19 11:20:24 +00:00
Dag-Erling Smørgrav
1727cdb62a
expand_number(3) takes a uint64_t * now.
...
MFC after: 3 weeks
2010-08-19 11:19:21 +00:00
Pawel Jakub Dawidek
28df1f238a
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
2010-08-18 12:09:27 +00:00
Pawel Jakub Dawidek
471bb09914
The 'size' variable is there to limit how many bytes we want to copy from
...
'addr'. It is very likely that size of 'addr' is larger than 'size', so checking
strlcpy() return value is bogus.
MFC after: 3 weeks
2010-08-16 21:59:56 +00:00
Joel Dahl
c2025a7660
Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while
...
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
2010-08-16 15:18:30 +00:00
Jaakko Heinonen
fb26ece72c
- Check that strtoul(3) succeeds to convert the entire string in a few
...
places.
- In getasciilabel(), set the disk type only when a valid type is given.
PR: bin/86765
MFC after: 2 weeks
2010-08-15 17:49:41 +00:00
Matt Jacob
e02616caf0
Avoid a memory leak.
...
Submitted by: Dmitry Luhtionov via Alexander Motin
MFC after: 1 week
2010-08-13 15:17:19 +00:00
Dag-Erling Smørgrav
c201d4532c
- Add full support for header / data digests.
...
- Increase target limit from 4 to 64; this limit will be removed entirely
at a later time.
- Improve recovery from lost network connections.
- Fix some potential deadlocks and a serious memory leak.
- Fix incorrect use of MH_ALIGN (instead of M_ALIGN), which makes no
practical difference, but triggers a KASSERT with INVARIANTS.
- Fix some warnings in iscontrol(8) and improve the man page somewhat.
Submitted by: Daniel Braniss <danny@cs.huji.ac.il>
Sponsored by: Dansk Scanning A/S, Data Robotics Inc.
2010-08-09 12:36:36 +00:00
John Baldwin
d99d8e2e38
Ethernet vlan(4) interfaces have valid Ethernet link layer addresses but
...
use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN
interfaces like IFT_ETHER interfaces when handling link layer addresses.
Reviewed by: syrinx (bsnmpd)
MFC after: 1 week
2010-08-06 15:09:21 +00:00
Joel Dahl
f6ac23919b
Fix typos and spelling mistakes.
2010-08-06 14:33:42 +00:00
Doug Barton
36d8ab97a0
Update the arguments to yy_config_parse() to match r210883.
...
Choose the more conservative option ('yes' to exit on error) to match
the equivalent code in hastd.
2010-08-06 05:20:21 +00:00
Pawel Jakub Dawidek
44d63cff2e
Document 'none' value for remote.
...
Reviewed by: dougb
MFC after: 1 month
2010-08-05 19:54:57 +00:00
Pawel Jakub Dawidek
0989854d45
Implement configuration reload on SIGHUP. This includes:
...
- Load added resources.
- Stop and forget removed resources.
- Update modified resources in least intrusive way, ie. don't touch
/dev/hast/<name> unless path to local component or provider name were
modified.
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
MFC after: 1 month
2010-08-05 19:16:31 +00:00
Pawel Jakub Dawidek
bbbb114cda
Prepare configuration parsing code to be called multiple times:
...
- Don't exit on errors if not requested.
- Don't keep configuration in global variable, but allocate memory for
configuration.
- Call yyrestart() before yyparse() so that on error in configuration file
we will start from the begining next time and not from the place we left of.
MFC after: 1 month
2010-08-05 19:08:54 +00:00
Pawel Jakub Dawidek
a00829bb71
Make control_set_role() more public. We will need it soon.
...
MFC after: 1 month
2010-08-05 19:04:29 +00:00
Pawel Jakub Dawidek
f377917cdc
Allow to use 'none' keywork as remote address in case second cluster node
...
is not setup yet.
MFC after: 1 month
2010-08-05 19:01:57 +00:00
Pawel Jakub Dawidek
a2ef0636b4
Reset signal handlers after fork().
...
MFC after: 1 month
2010-08-05 18:58:00 +00:00
Pawel Jakub Dawidek
005f438bf5
- Use pjdlog_exitx() to log errors and exit instead of errx().
...
- Use 'unable to' (instead of 'cannot') consistently.
MFC after: 1 month
2010-08-05 18:56:24 +00:00
Pawel Jakub Dawidek
2c5dadc9cf
Assert that various buffers we are large enough.
...
MFC after: 1 month
2010-08-05 18:27:41 +00:00
Pawel Jakub Dawidek
524840d8d0
Problem with assertion is that it logs on stderr. Add two macros:
...
PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition
and log the problem where appropriate. The difference between those
two is that PJDLOG_VERIFY() always work and PJDLOG_ASSERT() can be
turned off by defining NDEBUG.
MFC after: 1 month
2010-08-05 18:26:38 +00:00
Pawel Jakub Dawidek
6b97e48326
Keep $FreeBSD$ in __FBSDID() only for C files.
...
MFC after: 1 month
2010-08-05 18:23:43 +00:00
Pawel Jakub Dawidek
e3031161eb
Mark two more places that we won't reach.
...
MFC after: 1 month
2010-08-05 18:21:45 +00:00
Pawel Jakub Dawidek
9bf24e1a00
Now that TCP will be checked last we don't need any knowledge about other
...
protocols.
MFC after: 1 month
2010-08-05 17:57:59 +00:00
Pawel Jakub Dawidek
50692f84c6
Add an argument to the proto_register() function which allows protocol to
...
declare it is the default and be placed at the end of the queue so it is
checked last.
MFC after: 1 month
2010-08-05 17:56:41 +00:00
Bjoern A. Zeeb
08bb15b96f
One question mark per question; everything else is just exaggerating.
...
reply() will output a '?', when printing the question along with [yn],
so no need to have another here.
2010-08-03 09:21:13 +00:00
Joel Dahl
a53bb70bda
Spelling fixes.
2010-07-31 21:09:49 +00:00
Ulrich Spörlein
06d85cc61f
gsched(8) was first released with FreeBSD 8.1
...
MFC after: 3 days
2010-07-30 12:56:34 +00:00
Pawel Jakub Dawidek
3d3063c0b3
Fix typo.
...
PR: docs/149033
Submitted by: Kolar <hsn@sendmail.cz>
MFC after: 3 days
2010-07-29 20:16:12 +00:00