summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* - Fix documentation to note that /etc/hast.conf is the default configurationpjd2012-01-241-4/+6
| | | | | | | | file for hastd(8) and hastctl(8) and not hast.conf. - In copyright statement correct that this file is documentation, not software. - Bump date. MFC after: 3 days
* Free memory that won't be used in child.pjd2012-01-221-3/+7
| | | | MFC after: 1 week
* Fix minor memory leak.pjd2012-01-211-0/+1
| | | | MFC after: 3 days
* Replace the beerware license on mdconfig(8) with standard 2-clause BSD.trasz2012-01-211-8/+25
| | | | Approved by: phk@
* Remove another unused token.pjd2012-01-201-1/+1
| | | | MFC after: 3 days
* Remove unused token 'port'.pjd2012-01-202-2/+1
| | | | MFC after: 3 days
* Don't print the nmount(2) provided error message if it is empty.jh2012-01-201-1/+4
|
* Change mount_fs() to not exit on error. The "failok" mount optionjh2012-01-201-6/+5
| | | | | | | requires that errors are passed to the caller. PR: 163668 Reviewed by: Garrett Cooper
* - Clean up checkpath().jh2012-01-201-8/+5
| | | | | | | | - Remove unneeded sysexits.h include. No functional change. Submitted by: bde
* Allow growfs to be built with GCC 4.7 and -Werror.ed2012-01-171-1/+3
| | | | | The dp1 variable is only used when FSIRAND is defined. Just place the variable behind #ifdefs entirely.
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-1614-19/+41
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* Style cleanups.pjd2012-01-131-6/+11
| | | | MFC after: 3 days
* Provide a better explanation for the sizing of the boot partition, anddes2012-01-131-10/+14
| | | | | | | | reduce the size of the partition in the example from 128 blocks to 94 blocks so it will end on a 128-block boundary. Also remove the -b option from the next example. MFC after: 3 weeks
* Fix a style bugkevlo2012-01-131-1/+1
|
* - Fix a bug where pidfile was removed in SIGHUP when it hasn't changed inpjd2012-01-101-4/+8
| | | | | | | configuration file. - Log the fact that pidfile has changed. MFC after: 3 days
* For functions that return -1 on failure check exactly for -1 and not forpjd2012-01-1017-144/+144
| | | | | | any negative number. MFC after: 3 days
* Don't touch pidfiles when running in foreground. Before that change wepjd2012-01-101-11/+19
| | | | | | would create an empty pidfile on start and check if it changed on SIGHUP. MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-102-6/+1
| | | | | | | | | error: variable 'freq' set but not used error: variable 'mode_pars' set but not used Reviewed by: mav Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | | error: variable 'blksfree' set but not used Reviewed by: pjd Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'inumber' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | | error: variable 'secsz' set but not used Reviewed by: ae Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-5/+2
| | | | | | | | error: variable 'op' set but not used error: variable 'cmd' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-3/+0
| | | | | | | error: variable 'firstkey' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+0
| | | | | | | error: variable 'c' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'origextlen' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'Sflag' set but not used Approved by: dim MFC after: 3 days
* Add support for >2TB disks in GEOM RAID for Intel metadata format.jimharris2012-01-091-1/+1
| | | | | | Reviewed by: mav Approved by: scottl MFC after: 1 week
* Whitespace-only fix. Translators, please feel free to ignore.wblock2012-01-091-3/+4
| | | | | | Approved by: gjb (mentor) MFC after: 3 days X-MFC-with: r227774, r227777, r227800
* Clarity improvements.wblock2012-01-091-8/+8
| | | | | Approved by: gjb (mentor) MFC after: 3 days
* Spelling fixes for sbin/uqs2012-01-0724-37/+37
|
* Handle the internal scope address representation of the KAME IPv6ume2012-01-071-3/+6
| | | | | | | stack for the node-local multicast address. Spotted by: Rainer Bredehorn <Bredehorn__at__gmx.de> MFC after: 1 week
* fork(2) returns -1 on failure, not some random negative number.pjd2012-01-062-2/+2
| | | | MFC after: 3 days
* Fix build.glebius2012-01-061-1/+0
|
* Constify argument.pjd2012-01-062-2/+2
| | | | MFC after: 3 days
* Fix mdoc date from previous commit.uqs2012-01-061-1/+1
|
* Document the detrimental effect of kern.cam.XX.retry_count for recoverdisk(1)uqs2012-01-051-2/+18
| | | | | | | | | recoverdisk(1) wants to know about read errors when doing the 1MB/64k reads as fast as possible so it can continue and retry them later with smaller reads (down to sector size). Any retries by lower layers will only slow it down. Prodded by: arundel
* Adjust the VLAN section of the ifconfig(8) man page to better reflectrwatson2012-01-041-4/+5
| | | | | | | | | | | | reality: 1. Only 12-bit VLAN Identifiers, not full 16-bit VLAN tags can be set using ifconfig vlan. 2. When we mean VLAN Identifiers, spell it that way, rather than as VLAN tag. MFC after: 3 days Sponsored by: Adara Networks, Inc.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-035-10/+10
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Use in-label sectorsize to determine position of the label whensobomax2011-12-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | writing label into a file image. The most common use - putting disklabel into ISO file. Before this change the label would always go to the offset 512, while geom_part code expects it to be in the 1st sector (i.e. 2048 incase of ISO). BSD disklabels provide good and lightweight way to logically split livecds. It is non-intrusive as far as ISO9660 goes (both boot-wise and metadata-wise) and completely transparent to anything but BSD, so you can have BSD-specific area appended after regular ISO. And with a little bit of GEOM trickery you can do even more interesting stuff with it. For example we make "hybrid" bootable CDs using this method. We create bootable ISO with kernel and such and append UFS image compressed with UZIP and it works like a charm. We put label based on the offsef of the BSD part into the ISO. The kernel boots off normal ISO9660 part, tastes label attaches it, tastes UZIP, attaches it and finally mounts UFS using GEOM_LABEL. This provides much better way of eliminating waste than doing "crunched" build. MFC after: 1 month
* Set svn:executable on dhclient-scriptdumbbell2011-12-301-0/+0
| | | | Sponsored by: Yakaz (http://www.yakaz.com)
* Invalid Domain Search option isn't considered as a fatal errordumbbell2011-12-301-9/+17
| | | | | | | | | | | | In the original Domain Search option patch, an invalid option value would cause the whole lease to be rejected. However, DHCP servers who emit such an invalid value are more common than I thought. With this new patch, just the option is rejected, not the entire lease. PR: bin/163431 Submitted by: Fabian Keil <fk@fabiankeil.de> (earlier version) Reviewed by: Fabian Keil <fk@fabiankeil.de> Sponsored by: Yakaz (http://www.yakaz.com)
* Add missing -l flag to usage().brueffer2011-12-261-1/+1
| | | | | | PR: 163629 Submitted by: olgeni MFC after: 1 week
* - Add fallthrough commenteadler2011-12-241-0/+1
| | | | | | Approved by: pluknet Found with: Coverity Prevent(tm) CID: 10125
* Reduce NFPI by half to keep the default number of inodes the same withmckusick2011-12-211-1/+1
| | | | | | | | | the now default 32K/4K filesystem the same as the number of inodes in the previously default 16K/2K filesystem. PR: bin/16265 Reported by: Olivier Cochard-Labbe <olivier@cochard.me> MFC: 4 weeks (9 is the only affected branch)
* Change the type of real_dev_bsize variable from long to u_int.kib2011-12-202-2/+2
| | | | | | | | | | The DIOCGSECTORSIZE takes u_int * as an argument, using long * causes failures on big-endian targets. Diagnosed by: Michiel Boland <boland37 xs4all nl> PR: sparc64/163460 Tested by: pho (x86), flo (sparc64) MFC after: 1 week
* Many style fixes.pfg2011-12-202-77/+97
| | | | | | | | | | Remove C99 initializers: they don't help in this case. Set errno to 0 before strtoll() (from NetBSD). PR: 151850 Suggested by: bde Approved by: jhb (Mentor) MFC after: 2 weeks
* Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignmentdim2011-12-192-0/+2
| | | | | | | warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and there they can be safely ignored. MFC after: 1 week
* o Sort .Xrs.maxim2011-12-191-2/+2
|
* Use lex's standard way of not generating unused function.pjd2011-12-182-3/+3
| | | | | Inspired by: r228555 MFC after: 1 week
* Don't use function name as format string.pjd2011-12-181-1/+1
| | | | | Detected by: clang MFC after: 1 week
OpenPOWER on IntegriCloud