summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Don't crash when given an invalid nwkey string.brooks2005-10-281-0/+2
| | | | PR: misc/88159
* gmirror.8:ceri2005-10-252-2/+4
| | | | | | | | | Note the default balancing algorithm and stripe size. geom_mirror.c: Slightly friendlier error message. Reviewed by: pjd
* Restore the documentation about uid, gid or prison based rules requiringcsjp2005-10-231-0/+10
| | | | | | | | that debug.mpsafenet be set to 0. It is still possible for dead locks to occur while these filtering options are used due to the layering violation inherent in their implementation. Discussed: -current, rwatson, glebius
* Remove a diagnostic message that can't occur: we lost the ability todds2005-10-201-3/+0
| | | | handle the old filesystem format on 2002/06/21.
* Make devd WARNS=4 clean and bump WARNS accordingly. This will insurebrooks2005-10-192-3/+3
| | | | | | | that future variable shadowing bugs don't compile. Reviewed by: imp Compiled on: alpha i386 sparc64
* As pointed out on current@, we don't want to declare a variable in a scopeimp2005-10-191-1/+1
| | | | | | | | that just uses the variable and throws it away. This should fix the subsystem keyword wrt media-type. MFC After: 2 days
* Use the new name H_SETSIZE instead of the old H_EVENT to set the historystefanf2005-10-191-1/+1
| | | | | | size. PR: 86355
* Add new option `q', which makes second stage loader quiet unless autobootsobomax2005-10-161-1/+10
| | | | | | is disabled or fails. MFC after: 1 week
* Fix parsing of mdmfs(8) option "-w <user>:<group>" in case <user> orrse2005-10-141-10/+6
| | | | | | | | | | | | | | | | | | | | | | | | | <group> is a numeric user/group ID instead of a user/group name (as explicitly intended to be allowed by both the manual page and the implementation). Before this fix, mdmfs(8) aborted: | # mdmfs -s 32m -w 0:0 md /var/tmp/foo | Assertion failed: (mip->mi_have_uid), function extract_ugid, file /usr/src/sbin/mdmfs/mdmfs.c, line 555. | Abort trap (core dumped) The "mi_have_[ug]id" fields were only set in case a name lookup was successful. Instead they also have to be set in case the string to integer conversion was successful. Additionally, as a result of this fix, two assertions at the end of the function are now always true and hence can be just be removed. It is guarrantied that both the UID and the GID are set when the function returns regularily, else it would have been already bailed out with usage()/exit(3) or errx(3) before. Spotted by: Christoph Schug <chris@schug.net> MFC after: 3 days
* fixed a crush when either -lh or -ls option is used.ume2005-10-131-3/+3
| | | | Obtained from: KAME
* setkey(8) is not WARNS=2 compliant, yet.ume2005-10-131-0/+2
|
* setkey(8) was repo-copied from usr.sbin/ to sbin/.pjd2005-10-121-0/+1
| | | | | | This will allow for NFS mount of /usr over IPsec. Discussed on: arch@
* Replace "/etc/make.conf" with references to make.conf(5)yar2005-10-101-1/+2
| | | | | | | | | where applicable. The main reason for this change is that the location of make.conf is not constant and can be modified via __MAKE_CONF. This change also improves hyper-text linkage in our manpages. MFC after: 2 weeks
* Switch from K&R-style C prototypes to ISO/ANSI-style C prototypes.rodrigc2005-10-071-11/+4
|
* Bump WARNS up to 3.rodrigc2005-10-071-1/+1
|
* In prmount(), use an unsigned int variable to eliminaterodrigc2005-10-071-1/+2
| | | | 'comparison between signed and unsigned' compiler warning.
* Switch from K&R-style C prototypes to ISO/ANSI-style C prototypes.rodrigc2005-10-073-25/+11
| | | | Make prototype in extern.h match prototype in mount_ufs.c
* Display the status of the spanning tree for each port.thompsa2005-10-071-8/+16
| | | | | | | | | | member: xl0 flags=7<LEARNING,DISCOVER,STP> member: gem0 flags=7<LEARNING,DISCOVER,STP> to: member: xl0 flags=7<LEARNING,DISCOVER,STP> port 3 priority 128 path cost 55 forwarding member: gem0 flags=7<LEARNING,DISCOVER,STP> port 1 priority 128 path cost 55 learning
* Eliminate some unneeded code bits.yar2005-10-061-10/+7
|
* media-type predicate is used in contexts where device-name is undefined.imp2005-10-041-1/+9
| | | | | | | In those contexted, use subsystem instead. # This causes dhclient to run again when I plug in my ethernet cable to # my fxp card in my laptop.
* Use a callback to set up a vlan interface so that "vlan"yar2005-10-041-37/+31
| | | | | | | | | and "vlandev" commands can be specified in any order. This makes the code more compact and clear as well. Improve error check on vlan argument. MFC after: 2 weeks
* - s/cd0c/cd0blackend2005-10-031-2/+2
| | | | - Bump revision date to match many content changes since last revision
* Compile fdisk for arm as well.cognet2005-10-031-0/+4
|
* Document that -q option is also applicable to the "change" command.ru2005-10-021-2/+2
| | | | | PR: docs/85095 Submitted by: Rostislav Krasny
* o Restore kerneldumpheader.architectureversion bytes swoppingmaxim2005-10-021-1/+2
| | | | | | | | mangled in rev. 1.72. PR: bin/86805 Submitted by: Gavin Atkinson MFC after: 3 days
* Now ifconfig is the one right way to turn polling on. Thus, removeglebius2005-10-011-5/+6
| | | | the "if" clauses.
* For the sake of consistency and easier typing,yar2005-09-292-1/+6
| | | | | | | | introduce "-tunnel" as an alias for "deletetunnel". The latter is overly long and prone to typos, but keep it for POLA since it costs nothing. MFC after: 5 days
* Forgot to touch .Dd in the previous commit.yar2005-09-291-1/+1
|
* Deprecate the useless argument to -vlandev.yar2005-09-292-5/+10
| | | | | | Submitted by: Fredrik Lindberg <fli+freebsd-current at shapeshifter.se> (implementation) Reviewed by: brooks MFC after: 5 days
* err() -> errx() where appropriate.ru2005-09-291-5/+5
|
* Add a note in example as well, that last sector is used for metadata,pjd2005-09-291-1/+2
| | | | | | | so it don't provoke confusions. Noticed by: Victor Sudakov <sudakov@sibptus.tomsk.ru> MFC after: 2 days
* Introduce "route del" as an alias to "route delete".tobez2005-09-283-1/+7
| | | | Reviewed by: arch
* Redirect bridge(4) to if_bridge(4) and rename sysctl accordingly.mlaier2005-09-281-4/+4
| | | | Reminded by: ru
* Simplified markup.ru2005-09-281-10/+3
|
* Update usage.pjd2005-09-241-1/+1
|
* Add '-q' option, which (when used with '-m' option) just tells if the givenpjd2005-09-232-3/+15
| | | | | | | | module is loaded or compiled into the kernel. This is useful mostly in startup scripts, when module should be loaded only if it wasn't compiled into the kernel nor already loaded, eg.: kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.'
* Since special interface types get their own subsectionsyar2005-09-221-98/+104
| | | | | | (not in mdoc(7) sense yet) in ifconfig(8) manpage, create such subsections for gif(4) and vlan(4) so that their specific options are not mixed up with general options.
* - Understand EADDRINUSE, and forget EDQUOT. [1]glebius2005-09-211-2/+6
| | | | | | | | | - Add description for EEXIST. - Change description for ENOBUFS. Routing socket can return this error for many different reasons, including general memory shortage, mbuf memory shortage and rtentry zone. PR: kern/64090 [1]
* Mention the default location of alternative super block on adelphij2005-09-201-2/+2
| | | | | | | | UFS2 file system, in fsck_ffs(8). Submitted by: KOMATSU Shinichiro <koma2 at lovepeers ! org> PR: docs/86362 MFC After: 3 days
* Merged from src/sbin/fdisk/fdisk.c revision 1.81.nyan2005-09-181-1/+4
| | | | | | - Call gctl_free() to free resource allocated with gctl_get_handle(). MFC after: 3 days
* Clarify wording for -m flag.rodrigc2005-09-171-2/+12
| | | | PR: docs/84704
* Call gctl_free() to free resource allocated with gctl_get_handle().rodrigc2005-09-171-1/+4
| | | | | | PR: bin/84664 Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net> MFC after: 3 days
* Add "-q" argument to sysctl(8), which suppresses a limited set of warnings/rwatson2005-09-152-5/+17
| | | | | | | errors generated. In particular, it suppresses "unknown oid" when attempting to get or set a sysctl not present in the kernel. MFC after: 1 week
* Fix system shutdown timeout handling by again supporting longer runningrse2005-09-152-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | shutdown procedures (which have a duration of more than 120 seconds). We have two user-space affecting shutdown timeouts: a "soft" one in /etc/rc.shutdown and a "hard" one in init(8). The first one can be configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults to 30 seconds. The second one was originally (in 1998) intended to be configured via sysctl(8) variable "kern.shutdown_timeout" and defaults to 120 seconds. Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999 (as it obviously is actually not used within the kernel itself) and hence was intentionally but misleadingly removed in revision 1.107 from init_main.c. Kernel sysctl(8) variables are certainly a wrong way to control user-space processes in general, but in this particular case the sysctl(8) variable should have remained as it supports init(8), which isn't passed command line flags (which in turn could have been set via /etc/rc.conf), etc. As there is already a similar "kern.init_path" sysctl(8) variable which directly affects init(8), resurrect the init(8) shutdown timeout under sysctl(8) variable "kern.init_shutdown_timeout". But this time document it as being intentionally unused within the kernel and used by init(8). Also document it in the manpages init(8) and rc.conf(5). Reviewed by: phk MFC after: 2 weeks
* Xref msdosfs(5)joel2005-09-141-0/+1
| | | | Approved by: brueffer (mentor)
* Don't consider being unable to open the bounds file worthy of printingrwatson2005-09-131-1/+2
| | | | | | | | | at LOG_WARNING by default; instead, consider it something to be printed to the tty when 'verbose' mode is set. This avoids printing out extra lines at every boot on a system with crash dumps enabled, but that has not yet had to generate a crashdump. MFC after: 1 week
* Clean up.le2005-09-121-198/+106
| | | | | | | Remove unused functions. Reduce indentation level by reverting the logic of the enclosing conditional statement.
* Even if there are no valid keys in metadata, but provider is attachedpjd2005-09-101-5/+5
| | | | | | | we can still use setkey subcommand. MFC after: 3 days Found by: regression tests
* Avoid updating resolv.conf when no changes have actually occured.brooks2005-09-081-0/+10
| | | | Submitted by: ume
* When we fail to aquire a lease, our lease expires without a sucessfulbrooks2005-09-081-0/+1
| | | | | | | | | renewal, or we lose link, be more forceful about clearing interface state so another interface that connects to the same network has a chance of working. This doesn't address attemping to connect to both at once, but appears to allow unplugging from a wired interface and then inserting a wireless card that associates with an AP bridged to the same LAN.
OpenPOWER on IntegriCloud