Pawel Jakub Dawidek
fa5383a260
Remove now unused G_TYPE_ASCNUM.
2010-09-14 16:22:22 +00:00
Pawel Jakub Dawidek
8107ecf892
- Change all places where G_TYPE_ASCNUM is used to G_TYPE_NUMBER.
...
It turns out the new type wasn't really needed.
- Reorganize code a little bit.
2010-09-14 16:21:13 +00:00
Pawel Jakub Dawidek
56382b5f76
Update two last places where "arg0" should be used instead of "geom".
2010-09-14 16:19:09 +00:00
Glen Barber
75f01cd104
Synchronize newfs(8) manual with code.
...
PR: 61716
Submitted by: Radim Kolar <hsn at netmag cz>
Patch by: arundel
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-14 12:12:07 +00:00
Pawel Jakub Dawidek
d1db39d90e
All gpart(8) subcommands apart from the 'bootcode' subcommand handle
...
given geom/provider names with and without /dev/ prefix. Teach the
'bootcode' subcommand to handle /dev/<foo> names as well.
2010-09-14 11:36:26 +00:00
Pawel Jakub Dawidek
f104beb787
Remove dot which shouldn't be here, as err(3) will attach error message
...
at the end of the string.
2010-09-14 11:19:21 +00:00
Pawel Jakub Dawidek
7648b1e9c0
Introduce special G_VAL_OPTIONAL define, which when given in value field
...
tells geom(8) to ignore it when it is not given and don't try to obtain
default value.
2010-09-14 11:13:46 +00:00
Pawel Jakub Dawidek
315fcbf7db
Add G_TYPE_MULTI flag, which when set for the given option, will
...
allow the option to be specified multiple times. This will help to
implement things like passing multiple keyfiles to geli(8) instead of
cat(1)ing them all into stdin and reading from there using one '-k -'
option.
2010-09-13 13:59:28 +00:00
Pawel Jakub Dawidek
946e2f3595
- Remove gc_argname field. It was introduced for gpart(8), but if I
...
understand everything correctly, we don't really need it.
- Provide default numeric value as strings. This allows to simplify
a lot of code.
- Bump version number.
2010-09-13 13:48:18 +00:00
Pawel Jakub Dawidek
a478ea7490
- Allow to specify value as const pointers.
...
- Make optional string values always an empty string.
2010-09-13 08:56:07 +00:00
Warner Losh
130ecf684f
MF tbemd: Move to using Makefile.arch to select what to build.
...
Reviewed by: arch@ (no objection)
2010-09-13 02:25:21 +00:00
Glen Barber
92d01db21c
Rewording and typo fixes in newfs(8).
...
PR: 150490
Submitted by: Eitan Adler <foreignuser at eitanadler com>
Additional fixes by: Warren Block <wblock at wonkity com>, keramida
Approved by: keramida (mentor)
MFC after: 1 week
2010-09-12 17:50:07 +00:00
Brian Somers
5172455266
Document dhclient-enter-hooks and dhclient-exit-hooks and mention
...
how to configure dhclient to clear the interface of IP numbers prior
to configuring it.
PR: 149351
MFC after: 2 weeks
2010-09-06 09:59:10 +00:00
Brian Somers
1dc7e010ec
Handle geli-encrypted root disk devices.
...
MFC after: 2 weeks
2010-09-06 04:15:49 +00:00
Daichi GOTO
21f9b7b28a
Allowed unionfs to use whiteout not supporting file system as
...
upper layer. Until now, unionfs prevents to use that kind of
file system as upper layer. This time, I changed to allow
that kind of file system as upper layer. By this change, you
can use whiteout not supporting file system (e.g., especially
for tmpfs) as upper layer. It's very useful for combination of
tmpfs as upper layer and read only file system as lower layer.
By difinition, without whiteout support from the file system
backing the upper layer, there is no way that delete and rename
operations on lower layer objects can be done. EOPNOTSUPP is
returned for this kind of operations as generated by VOP_WHITEOUT()
along with any others which would make modifica tions to the
lower layer, such as chmod(1).
This change is suggested by ed.
Submitted by: ed
2010-09-05 04:58:16 +00:00
Kevin Lo
d0654c8566
Shut the compiler up; initializes the sotype variable to zero in
...
nfs_tryproto().
Reviewed by: rmacklem
2010-09-04 08:42:19 +00:00
Maxim Konovalov
2888756701
o List MOUNTVER and SCHED classes. X-ref gsched(8). Bump Dd.
...
PR: docs/149925
Submitted by: arundel
2010-09-01 08:32:40 +00:00
Pawel Jakub Dawidek
6d19256b15
Include process PID in log messages.
...
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 2 weeks
2010-08-31 12:05:13 +00:00
Pawel Jakub Dawidek
8ecdeae9d9
Correct error message.
...
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 2 weeks
2010-08-31 12:03:29 +00:00
Pawel Jakub Dawidek
71c895eb1f
Forgot to add event.c and event.h in r212038.
...
Pointed out by: pluknet <pluknet@gmail.com>
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-31 09:38:43 +00:00
Pawel Jakub Dawidek
852ac373cb
Mask only those signals that we want to handle.
...
Suggested by: jilles
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-31 06:22:03 +00:00
Pawel Jakub Dawidek
5bdff860e7
Because it is very hard to make fork(2) from threaded process safe (we are
...
limited to async-signal safe functions in the child process), move all hooks
execution to the main (non-threaded) process.
Do it by maintaining connection (socketpair) between child and parent
and sending events from the child to parent, so it can execute the hook.
This is step in right direction for others reasons too. For example there is
one less problem to drop privs in worker processes.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 23:26:10 +00:00
Pawel Jakub Dawidek
6b276294af
We only want to know if descriptors are ready for reading.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 23:19:21 +00:00
Pawel Jakub Dawidek
eea2deaad0
When someone gives NULL as data, assume this is because he want to declare
...
connection side only.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 23:16:45 +00:00
Pawel Jakub Dawidek
6be3a25c85
Use pjdlog_exit() before fork().
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 22:28:04 +00:00
Pawel Jakub Dawidek
b938cdcc9b
Constify arguments we can constify.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 22:26:42 +00:00
Maxim Konovalov
1ece82b487
Make flags in usage() and SYNOPSYS more style(9)-ish.
...
Suggested by: brian
MFC after: 3 days
2010-08-30 07:29:27 +00:00
Pawel Jakub Dawidek
5b41e64486
Execute hook when connection between the nodes is established or lost.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 00:31:30 +00:00
Pawel Jakub Dawidek
2be8fd75ff
Execute hook when split-brain is detected.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 00:12:10 +00:00
Pawel Jakub Dawidek
6d0c801ea9
Use sigtimedwait(2) for signals handling in primary process.
...
This fixes various races and eliminates use of pthread* API in signal handler.
Pointed out by: kib
With help from: jilles
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-30 00:06:05 +00:00
Pawel Jakub Dawidek
ff6bb1f8b3
- Move functionality responsible for checking one connection to separate
...
function to make code more readable.
- Be sure not to reconnect too often in case of signal delivery, etc.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-29 22:55:21 +00:00
Pawel Jakub Dawidek
ee087cdf97
Disconnect after logging errors.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-29 22:17:53 +00:00
Pawel Jakub Dawidek
a870e771b9
- Call hook on role change.
...
- Document new event.
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-29 21:42:45 +00:00
Pawel Jakub Dawidek
ecc99c890e
Allow to run hooks from the main hastd process.
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-29 21:41:53 +00:00
Pawel Jakub Dawidek
25ec2e3e2b
- Add hook_fini() which should be called after fork() from the main hastd
...
process, once it start to use hooks.
- Add hook_check_one() in case the caller expects different child processes
and once it can recognize it, it will pass pid and status to hook_check_one().
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-29 21:39:49 +00:00
Pawel Jakub Dawidek
572cdb2216
Implement mtx_destroy() and rw_destroy().
...
MFC after: 2 weeks
Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
2010-08-29 21:37:21 +00:00
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