summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify code a bit by using g_*() API from libgeom.pjd2010-09-231-19/+10
| | | | MFC after: 1 week
* Switch to sigprocmask(2) API also in the main process and secondary process.pjd2010-09-224-61/+44
| | | | | | | | | This way the primary process inherits signal mask from the main process, which fixes a race where signal is delivered to the primary process before configuring signal mask. Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Assert that descriptor numbers are sane.pjd2010-09-221-0/+4
| | | | MFC after: 3 days
* Fix possible deadlock where worker process sends an event to the main processpjd2010-09-222-8/+26
| | | | | | | | | | | while the main process sends control message to the worker process, but worker process hasn't started control thread yet, because it waits for reply from the main process. The fix is to start the control thread before sending any events. Reported and fix suggested by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
* Fix descriptor leaks: when child exits, we have to close control and eventpjd2010-09-223-9/+17
| | | | | | socket pairs. We did that only in one case out of three. MFC after: 3 days
* If we are unable to receive control message is most likely because the mainpjd2010-09-221-1/+2
| | | | | | process died. Instead of entering infinite loop, terminate. MFC after: 3 days
* Sort includes.pjd2010-09-221-1/+1
| | | | MFC after: 3 days
* Add a notice to the man page that batteries should be installed.ed2010-09-211-0/+1
|
* Add a geli resize subcommand to resize encrypted filesystems priorbrian2010-09-202-5/+187
| | | | | | | | | | | | | | | to growing the filesystem. Refuse to attach providers where the metadata provider size is wrong. This makes post-boot attaches behave consistently with pre-boot attaches. Also refuse to restore metadata to a provider of the wrong size without the new -f switch. The new -f switch forces the metadata restoration despite the provider size, and updates the provider size in the restored metadata to the correct value. Helped by: pjd Reviewed by: pjd
* Add __dead2 to functions that we know they are going to exit.pjd2010-09-202-3/+3
| | | | MFC after: 3 days
* Unbreak the build on strong-aligned architectures (arm, ia64).marcel2010-09-201-1/+1
| | | | | | | Casting from (char *) to (struct ufs1_dinode *) changes the alignment requirement of the pointer and GCC does not know that the pointer is adequately aligned (due to malloc(3)), and warns about it. Cast to (void *) first to by-pass the check.
* Fix indent.pjd2010-09-191-7/+7
|
* Revise r197763 which fixes filesystem corruption when extendingbrian2010-09-191-14/+13
| | | | | | | | | | | | into un-zeroed storage. The original patch was questioned by Kirk as it forces the filesystem to do excessive work initialising inodes on first use, and was never MFC'd. This change mimics the newfs(8) approach of zeroing two blocks of inodes for each new cylinder group. Reviewed by: mckusick MFC after: 3 weeks
* nextboot: warn about limitations of /boot/nextboot.conf on ZFSavg2010-09-171-0/+8
| | | | MFC after: 1 week
* Make the format of "Real Memory" and "Virtual Memory" lines morezec2010-09-161-2/+2
| | | | | | consistent with the rest of sysctl vm.vmtotal output. MFC after: 3 days
* Add support for identifying a journaled root filesystem.brian2010-09-161-1/+2
| | | | | | Fix support for identifying the given /dev/vinum/root example. MFC after: 3 weeks
* 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
OpenPOWER on IntegriCloud