summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* GPART_PARAM_INDEX is now G_TYPE_NUMBER.pjd2010-09-151-8/+4
|
* Remove dead code.pjd2010-09-141-15/+6
|
* Remove now unused G_TYPE_ASCNUM.pjd2010-09-142-3/+1
|
* - Change all places where G_TYPE_ASCNUM is used to G_TYPE_NUMBER.pjd2010-09-141-8/+8
| | | | | It turns out the new type wasn't really needed. - Reorganize code a little bit.
* Update two last places where "arg0" should be used instead of "geom".pjd2010-09-141-2/+2
|
* Synchronize newfs(8) manual with code.gjb2010-09-141-3/+4
| | | | | | | | PR: 61716 Submitted by: Radim Kolar <hsn at netmag cz> Patch by: arundel Approved by: keramida (mentor) MFC after: 1 week
* All gpart(8) subcommands apart from the 'bootcode' subcommand handlepjd2010-09-141-0/+2
| | | | | given geom/provider names with and without /dev/ prefix. Teach the 'bootcode' subcommand to handle /dev/<foo> names as well.
* Remove dot which shouldn't be here, as err(3) will attach error messagepjd2010-09-141-1/+1
| | | | at the end of the string.
* Introduce special G_VAL_OPTIONAL define, which when given in value fieldpjd2010-09-143-11/+12
| | | | | tells geom(8) to ignore it when it is not given and don't try to obtain default value.
* Add G_TYPE_MULTI flag, which when set for the given option, willpjd2010-09-132-6/+40
| | | | | | | 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.
* - Remove gc_argname field. It was introduced for gpart(8), but if Ipjd2010-09-1317-265/+240
| | | | | | | 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.
* - Allow to specify value as const pointers.pjd2010-09-136-51/+50
| | | | - Make optional string values always an empty string.
* MF tbemd: Move to using Makefile.arch to select what to build.imp2010-09-138-56/+43
| | | | Reviewed by: arch@ (no objection)
* Rewording and typo fixes in newfs(8).gjb2010-09-121-3/+3
| | | | | | | | 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
* Document dhclient-enter-hooks and dhclient-exit-hooks and mentionbrian2010-09-061-1/+25
| | | | | | | | how to configure dhclient to clear the interface of IP numbers prior to configuring it. PR: 149351 MFC after: 2 weeks
* Handle geli-encrypted root disk devices.brian2010-09-061-2/+7
| | | | MFC after: 2 weeks
* Allowed unionfs to use whiteout not supporting file system asdaichi2010-09-051-3/+4
| | | | | | | | | | | | | | | | | | | | 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
* Shut the compiler up; initializes the sotype variable to zero inkevlo2010-09-041-0/+1
| | | | | | nfs_tryproto(). Reviewed by: rmacklem
* o List MOUNTVER and SCHED classes. X-ref gsched(8). Bump Dd.maxim2010-09-011-1/+6
| | | | | PR: docs/149925 Submitted by: arundel
* Include process PID in log messages.pjd2010-08-311-0/+3
| | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 2 weeks
* Correct error message.pjd2010-08-311-1/+1
| | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 2 weeks
* Forgot to add event.c and event.h in r212038.pjd2010-08-312-0/+208
| | | | | | Pointed out by: pluknet <pluknet@gmail.com> MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Mask only those signals that we want to handle.pjd2010-08-311-1/+4
| | | | | | Suggested by: jilles MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Because it is very hard to make fork(2) from threaded process safe (we arepjd2010-08-305-34/+74
| | | | | | | | | | | | | | 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
* We only want to know if descriptors are ready for reading.pjd2010-08-301-7/+4
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* When someone gives NULL as data, assume this is because he want to declarepjd2010-08-301-0/+8
| | | | | | | connection side only. MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Use pjdlog_exit() before fork().pjd2010-08-301-2/+2
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Constify arguments we can constify.pjd2010-08-304-23/+25
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Make flags in usage() and SYNOPSYS more style(9)-ish.maxim2010-08-302-3/+2
| | | | | Suggested by: brian MFC after: 3 days
* Execute hook when connection between the nodes is established or lost.pjd2010-08-303-10/+41
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Execute hook when split-brain is detected.pjd2010-08-303-0/+10
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Use sigtimedwait(2) for signals handling in primary process.pjd2010-08-301-81/+40
| | | | | | | | | 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
* - Move functionality responsible for checking one connection to separatepjd2010-08-291-52/+75
| | | | | | | | 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
* Disconnect after logging errors.pjd2010-08-291-1/+1
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* - Call hook on role change.pjd2010-08-292-1/+26
| | | | | | | - Document new event. MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Allow to run hooks from the main hastd process.pjd2010-08-293-3/+22
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* - Add hook_fini() which should be called after fork() from the main hastdpjd2010-08-292-22/+62
| | | | | | | | | 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
* Implement mtx_destroy() and rw_destroy().pjd2010-08-291-0/+16
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* gsched(8): fix example usage, mdoc nitsuqs2010-08-291-7/+7
| | | | | | | | | | - 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
* Fix incorrect usage of 'assure' and 'insure'.brucec2010-08-281-1/+1
| | | | Approved by: rrs (mentor)
* When SIGTERM or SIGINT is received, terminate worker processes.pjd2010-08-271-0/+30
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* When logging to stdout/stderr, flush after each log.pjd2010-08-271-0/+1
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Correct when we log interrupted synchronization.pjd2010-08-271-6/+4
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Check if no signals were delivered just before going to sleep.pjd2010-08-271-1/+3
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Add hooks execution.pjd2010-08-271-0/+6
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Document new 'exec' parameter.pjd2010-08-271-1/+39
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Allow to execute specified program on various HAST events.pjd2010-08-276-4/+68
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* - Run hooks in background - don't block waiting for them to finish.pjd2010-08-272-20/+228
| | | | | | | | - 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
* When logging to stdout/stderr don't close those descriptors after fork().pjd2010-08-271-2/+15
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
* Reduce indent where possible.pjd2010-08-271-30/+30
| | | | | MFC after: 2 weeks Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
OpenPOWER on IntegriCloud