summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.dim2011-12-182-3/+6
| | | | MFC after: 1 week
* Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksumbz2011-12-172-3/+5
| | | | | | | offloading on vlans and document the new option. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* In sbin/devd/devd.h, 'event_proc' and 'eps' are declared as structs. Indim2011-12-171-2/+2
| | | | | | devd.hh, there are redeclared as classes. Fix the inconsistency. MFC after: 1 week
* In sbin/dhclient, since we know the size of the source strings anyway,dim2011-12-172-3/+3
| | | | | | we might as well use memcpy; strlcpy is really unnecessary here. MFC after: 1 week
* In sbin/dhclient, work around warnings about the size argument todim2011-12-172-6/+12
| | | | | | | strlcpy appearing to be the size of the source buffer, instead of the destination. MFC after: 1 week
* Use both NO_WFORMAT and NO_WARRAY_BOUNDS for sbin/ipf, it would be toodim2011-12-171-0/+2
| | | | | | | disruptive to actually fix all the warnings, and the code hasn't been maintained for several years. MFC after: 1 week
* In sbin/atm/atmconfig/diag.c, fix a few warnings about format stringsdim2011-12-171-4/+4
| | | | | | not being literals. MFC after: 1 week
* Use NO_WCAST_ALIGN for sbin/gbde, this is more appropriate to fix thedim2011-12-171-5/+3
| | | | | | alignment warnings than using WARNS=3, and it also works for clang. MFC after: 1 week
* Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.dim2011-12-161-0/+1
| | | | MFC after: 1 week
* In sbin/fsdb/fsdbutil.c, work around a clang false positive with printfdim2011-12-161-2/+3
| | | | | | | format warnings and conditional operators. (See LLVM PR 11313 for more information.) MFC after: 1 week
* In sbin/camcontrol/camcontrol.c, fix a few warnings about format stringsdim2011-12-161-7/+7
| | | | | | not being literals. MFC after: 1 week
* Rename ifcarp.c to carp.cglebius2011-12-162-1/+1
|
* Since size of struct in_aliasreq has just been changed in r228571,glebius2011-12-161-0/+1
| | | | | and thus ifconfig(8) needs recompile, it is a good chance to make parameter checks on SIOCAIFADDR arguments more strict.
* A major overhaul of the CARP implementation. The ip_carp.c was startedglebius2011-12-166-89/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from scratch, copying needed functionality from the old implemenation on demand, with a thorough review of all code. The main change is that interface layer has been removed from the CARP. Now redundant addresses are configured exactly on the interfaces, they run on. The CARP configuration itself is, as before, configured and read via SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or SIOCAIFADDR_IN6 may now be configured to a particular virtual host id, which makes the prefix redundant. ifconfig(8) semantics has been changed too: now one doesn't need to clone carpXX interface, he/she should directly configure a vhid on a Ethernet interface. To supply vhid data from the kernel to an application the getifaddrs(8) function had been changed to pass ifam_data with each address. [1] The new implementation definitely closes all PRs related to carp(4) being an interface, and may close several others. It also allows to run a single redundant IP per interface. Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for idea on using ifam_data and for several rounds of reviewing! PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448 Reviewed by: bz Submitted by: bz [1]
* Xref re_format(7) in devd.conf(5), not in devd(8).glebius2011-12-162-5/+5
| | | | Pointy hat to: glebius
* Xref re_format(7).glebius2011-12-161-2/+3
|
* Remove redundant assignment.pjd2011-12-151-2/+0
| | | | | Found by: Clang Static Analyzer MFC after: 1 week
* Simplify code by changing functions types from int to avoid, as the functionspjd2011-12-151-15/+6
| | | | | | | always return 0. Found by: Clang Static Analyzer MFC after: 1 week
* Remove redundant setting of the error variable.pjd2011-12-151-2/+0
| | | | | Found by: Clang Static Analyzer MFC after: 1 week
* dhclient-script relied on incorrect behavior of SIOCAIFADDR ioctl,glebius2011-12-131-1/+1
| | | | | | | | | | | | that changed 0.0.0.0/0.0.0.0 prefix to 0.0.0.0/255.0.0.0. In the r228313 this behavior was fixed, and since dhclient-script got broken. I'm not sure this fix is a perfect one, it just changes dhclient-script to set 0.0.0.0/255.0.0.0 explicitly. PR: kern/163206
* Staticify dumpfs.ed2011-12-131-20/+20
| | | | | | This tool only consists of a single C file, so we can simply mark everything except main() static. This seems to shave off about 8% of the binary size.
* Add more static keywords to rcorder(8).ed2011-12-111-48/+47
| | | | | | The global variables and functions provided by rcorder.c are not used in the other C files, as the other C files only provide memory allocation and hash functions. This reduces the binary size by 10%.
* Add missing static keyword.ed2011-12-111-1/+1
| | | | | All global variables and functions are marked static. Simply because this is an enum, doesn't mean we can't do so as well.
* Let reboot(8) use getprogname() to compare the program name.ed2011-12-111-3/+3
| | | | | While there, mark the global variable dohalt static, as reboot(8) only consists of a single C file.
* Add missing static keywords to global variables in camcontrol.ed2011-12-112-13/+13
| | | | | While there, make the vendor list const and add appropriate keywords to functions that use this list.
OpenPOWER on IntegriCloud