summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Implement the "-i" option to sysctl(8), to ignore failures whilegavin2010-01-312-4/+15
| | | | | | | | | | | retrieving individual OIDs. This allows the same list of OIDs to be passed to sysctl(8) across different systems where particular OIDs may not exist, and still get as much information as possible from them. PR: bin/123644 Submitted by: dhw Approved by: ed (mentor) MFC after: 2 weeks
* Allow mknod(8) to be only invoked with a pathname as an argument.ed2010-01-312-32/+40
| | | | | | | | | In 99% of the cases people just want to recreate device nodes they removed from /dev. There is no reason to pass the additional "c 0 0" anymore. Also slightly improve the manpage. Remove references to non-existent device names and platforms.
* - Handle short reads when the -P option is used. Short reads must bejh2010-01-291-8/+3
| | | | | | | | | | handled when reading from pipes. - Remove dead code related to the -P option from getvol(). pipein and pipecmdin are never set at the same time. PR: bin/121502 Approved by: trasz (mentor) MFC after: 2 weeks
* - Cast time_t, int64_t and some int32_t values to intmax_t and use "%jd"jh2010-01-295-25/+29
| | | | | | | | | | | | | in format strings. - Use (void) instead of (void *) when discarding strcat(3) return value. - Format string fixes to match variable types. - Change canon() len parameter and getcmd() size parameter type from int to size_t. - Style Makefile and increase WARNS to 2. PR: bin/140061 Submitted by: uqs Approved by: trasz (mentor)
* Remove stale inclusion of <ulog.h>.ed2010-01-271-1/+0
| | | | This tool doesn't require libulog anymore.
* Revised revision 199201 (add interface description capability as inspireddelphij2010-01-272-2/+70
| | | | | | | | by OpenBSD), based on comments from many, including rwatson, jhb, brooks and others. Sponsored by: iXsystems, Inc. MFC after: 1 month
* Make mdconfig(8) WARNS=6 clean:jh2010-01-222-8/+6
| | | | | | | | | - Constify geom_config_get() name argument. - Add void keyword for usage(). - Initialize mdunit to NULL. - Don't call md_prthumanval() at all if length is NULL. Approved by: trasz (mentor)
* Document the negnametimeo option for mount_nfs as implementedrmacklem2010-01-211-0/+4
| | | | | | by r202767. This is a content change. MFC after: 2 weeks
* Remove stale references to utmp(5) and its corresponding filenames.ed2010-01-212-18/+7
| | | | I removed utmp and its manpage, but not other manpages referring to it.
* - Add -v argument to `camcontrol identify` command. It makes camcontrolmav2010-01-202-16/+34
| | | | | print full identify data block. - Improve identify result view and add TRIM support.
* Also output stripeoffset for consumer even if stripesize is zero, whiledelphij2010-01-181-1/+1
| | | | | | stripeoffset is non-zero. Pointed out by: mav
* Print sizes up to INT64_MAX in md_prthumanval().jh2010-01-181-5/+6
| | | | | | PR: bin/125365 Approved by: trasz (mentor) MFC after: 2 weeks
* Raise WARNS for various tools where possible.ed2010-01-179-9/+4
| | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch>
* Mute some (hidden) warnings about old-style function definitions.ed2010-01-171-2/+2
| | | | Submitted by: Marius Nünnerich <marius nuenneri ch>
* Small fixes.brueffer2010-01-171-3/+4
|
* Stripe offset may be usable even without stripe size known,delphij2010-01-171-1/+1
| | | | | | so give the output when either is non-zero. Suggested by: mav
* Expose stripe offset and stripe size through libgeom and geom(8) userlanddelphij2010-01-171-0/+8
| | | | | | utilities. Reviewed by: pjd, mav (earlier version)
* Add gmountver, disk mount verification GEOM class.trasz2010-01-165-0/+194
| | | | | | | | Note that due to e.g. write throttling ('wdrain'), it can stall all the disk I/O instead of just the device it's configured for. Using it for removable media is therefore not a good idea. Reviewed by: pjd (earlier version)
* Use the newly brought %U macro.ru2010-01-151-1/+1
|
* Reject invalid CIDR widths rather than silently stopping at the firstemaste2010-01-141-4/+8
| | | | | | | | | | | | non-digit character. Due to an issue with rc(8) in a test configuration, ifconfig was being invoked with the address used again as the width - for example, ifconfig vlan0 10.0.0.1/10.0.0.1 Prior to this change, that address/width would be interpreted as 10.0.0.1/10.
* Port the remaining apps in sbin/ to utmpx; only reboot(8).ed2010-01-132-4/+1
|
* Migrate init(8) towards utmpx.ed2010-01-132-5/+8
| | | | | | | | According to a comment, we cannot safely remove utmpx entries here anymore. This is because the libc routines may block on file locking. In an ideal world login(1) should just remove the entries, which is why I'm disabling this code for now. If it turns out we get lots of stale entries here, we should figure out a way to deal with that.
* Spell "Hz" correctly wherever it is user-visible.gavin2010-01-121-5/+5
| | | | | | | PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Approved by: ed (mentor) MFC after: 2 weeks
* Cast 64-bit quantity to intptr_t rather than int so as to work properlymckusick2010-01-111-2/+2
| | | | | | with 64-bit architectures (such as amd64). Reported by: Xin LI and Josh Paetzel
* This update utilizes new fsck sysctl commands that allow fsck runningmckusick2010-01-111-7/+82
| | | | | | | | | | in background mode to correct expected inconsistencies that arise during directory rename (see immediately previous update to this file for details). If run on a kernel without the new functionality, background fsck will simply ignore these inconsistencies rather than fail. Reported by: jeff
* When renaming a directory it passes through several intermediatemckusick2010-01-111-21/+109
| | | | | | | | | | | | | | | | | | | | | | | | states. First its new name will be created causing it to have two names (from possibly different parents). Next, if it has different parents, its value of ".." will be changed from pointing to the old parent to pointing to the new parent. Concurrently, its old name will be removed bringing it back into a consistent state. When fsck encounters an extra name for a directory, it offers to remove the "extraneous hard link"; when it finds that the names have been changed but the update to ".." has not happened, it offers to rewrite ".." to point at the correct parent. Both of these changes were considered unexpected so would cause fsck in preen mode or fsck in background mode to fail with the need to run fsck manually to fix these problems. This update changes these errors to be expected so that in preen mode fsck will simply fix these transitional errors. For now, background fsck will note these errors, but will need additional kernel support to fix them, so will simply ignore them rather than fail. A future update will allow background fsck to fix these problems. Reported by: jeff
* Add some error messages suggested in PR bin/138043. The code tomckusick2010-01-072-3/+12
| | | | | | | correct the problem was added in r176575 by delphij on 2008-02-25. PR: 138043 Reported by: Heikki Suonsivu
* This corrects a bug that manifested itself as identifying the lastmckusick2010-01-071-1/+1
| | | | | | | | | | cylinder group of a UFS1 filesystem as bad. The error was in the check and not in the cylinder group itself. So even though fsck fixed the cylinder group correctly, it was still endlessly reported as bad. PR: 141992 MFC after: 2 weeks Reported by: Dan Strick
* Increase default block size from 4K to 64K. It was reduces 6 yeard ago,mav2010-01-061-1/+1
| | | | | | | | | | when trees were big and FAST mode was enabled by default. So small block size doesn't benefits linear I/O operations in FAST and significantly slowdowns in ECONOMIC (default) mode. For single stream random I/Os so small block doesn't give much benefits, as access time is usually bigger then transfer time there. Same time it requires all heads to seek together for every single request, reducing performance on parallel load.
* Print leading zeros in the UFS2 FSID.gavin2010-01-061-1/+1
| | | | | | | PR: bin/142155 Submitted by: Efstratios Karatzas gpf.kira gmail.com Approved by: ed (mentor) MFC after: 2 weeks
* For completeness, add -s argument, manually specifying array block size.mav2010-01-052-3/+13
|
* Add manual page for gcache(8).trasz2010-01-033-2/+193
|
* Remove dead code. This section of code is only run in thegavin2010-01-021-10/+4
| | | | | | | | | | (sblock.fs_magic == FS_UFS1_MAGIC) case, so the check within the loop is redundant. Submitted by: Nate Eldredge nge cs.hmc.edu Reviewed by: mjacob Approved by: ed (mentor) MFC after: 1 month
* Remove reference to the bug in FreeBSD 2.0.kib2010-01-021-8/+0
| | | | | Submitted by: Valentin Nechayev <netch segfault kiev ua> MFC after: 3 days
* Fix typo: s/partion/partition/mbr2010-01-021-1/+1
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 3 days
* Let umount build with -Wold-style-definition.ed2009-12-301-1/+1
|
* ANSIfy almost all applications that use WARNS=6.ed2009-12-297-100/+53
| | | | | | | I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
* ANSIfy ldconfig and the aout bits it still uses from rtld-aout.ed2009-12-291-13/+7
| | | | (Why is aout support still there?)
* Add forgotten `void' keyword. This function has no arguments.ed2009-12-291-1/+1
|
* Add missing `void' for functions without arguments.ed2009-12-291-4/+4
| | | | | While there, rename die_you_gravy_sucking_pig_dog() to something that's less moronic.
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-284-5/+5
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* Make umount(8) WARNS=6 clean:delphij2009-12-282-28/+28
| | | | | | | | | | | - Cast delimiter width to integer [1] - Solve name conflicts against system header - Constify parameters to avoid qualifier conflict PR: bin/140017 [1] Submitted by: Ulrich Spörlein <uqs spoerlein net> [1] MFC after: 1 month Sponsored by: iXsystems, Inc
* - Display current settings when run without options.ru2009-12-262-15/+30
| | | | | | - Revise a manpage to NOT sound confusing. [1] In collaboration with: sat [1]
* Implement NFSv4 ACL support for UFS.trasz2009-12-216-14/+76
| | | | Reviewed by: rwatson
* ifconfig(8) is documented to take a ISO 3166-1 country code to set thegavin2009-12-151-2/+5
| | | | | | | | | | | | | | | | | regulatory domain with the "country" parameter, but will also take a full country name. The man page warns that only the ISO code is unambiguous. In reality, however, the first match on either would be accepted, leading to "DE" being interpreted as the "DEBUG" country rather than Germany, and "MO" selecting Morocco rather than the correct country, Macau. Fix this by always checking for an ISO CC match first, and only search on the full country name if that fails. PR: bin/140571 Tested by: Dirk Meyer dirk.meyer dinoex.sub.org Reviewed by: sam Approved by: ed (mentor) MFC after: 1 month
* implement a new match option,luigi2009-12-153-0/+60
| | | | | | | | | | | | | | lookup {dst-ip|src-ip|dst-port|src-port|uid|jail} N which searches the specified field in table N and sets tablearg accordingly. With dst-ip or src-ip the option replicates two existing options. When used with other arguments, the option can be useful to quickly dispatch traffic based on other fields. Work supported by the Onelab project. MFC after: 1 week
* fix the indentation for addr: valuesluigi2009-12-151-0/+2
| | | | MFC after: 3 days
* The default balance algorithm has changed from "split" toru2009-12-091-2/+2
| | | | (the improved version of) "load".
* Change gmirror default balance algorithm from "split" to "load".mav2009-12-081-1/+1
| | | | | | | | | | | "split" is very ineffective for devices with rotating media as HDDs. To be effective, it needs that transfer time reduction due to block splitting was bigger then access time increase due to non-sequential access. For modern HDDs I was able to reproduce it only with read sizes of 2MB and above, which is almost not applicable in real life. "load" algorithm same time is more universal and effective now. Reviewed by: pjd
* restore setting of sin_len (was removed in 1.146 last february) asluigi2009-12-061-1/+3
| | | | | | | | | | it seems that now it is necessary for 'forward' to work outside lo0. The bug (and fix) was reported on 8.0. This patch probably applies to RELENG_7 as well. It seems that 'pf' has a similar bug. Submitted by: Lytochkin Boris MFC after: 3 days
OpenPOWER on IntegriCloud