summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* MFp4:mav2009-12-061-6/+17
| | | | | | | | | | | | | | | | | | Introduce ATA_CAM kernel option, turning ata(4) controller drivers into cam(4) interface modules. When enabled, this options deprecates all ata(4) peripheral drivers (ad, acd, ...) and interfaces and allows cam(4) drivers (ada, cd, ...) and interfaces to be natively used instead. As side effect of this, ata(4) mode setting code was completely rewritten to make controller API more strict and permit above change. While doing this, SATA revision was separated from PATA mode. It allows DMA-incapable SATA devices to operate and makes hw.ata.atapi_dma tunable work again. Also allow ata(4) controller drivers (except some specific or broken ones) to handle larger data transfers. Previous constraint of 64K was artificial and is not really required by PCI ATA BM specification or hardware. Submitted by: nwitehorn (powerpc part)
* Let init(8) and reboot(8) use utmpx to log wtmp entries.ed2009-12-054-11/+22
| | | | | | | | logwtmp() gets called with the raw strings that are written to disk. For regular user entries, this isn't too bad, but when booting/shutting down, the contents get rather cryptic. Just call the standardized pututxline().
* fix argument type in the call to expand_numberluigi2009-12-041-1/+1
| | | | | Submitted by: gcc 4.3 MFC after: 3 days
* use qsort_r instead of heapsort;luigi2009-12-031-4/+4
| | | | | | staticize two functions. MFC after: 3 days
* Drop USB mass storage devices support from ata(4). It is out of the build asmav2009-11-261-6/+0
| | | | | | | | long as I remember, and completely superseded by better maintained umass(4). It's main idea was to optionally avoid CAM dependency for such devices, but with move ATA to CAM, it is not actual any more. No objections: hselasky@, thompsa@, arch@
* MFp4:mav2009-11-262-51/+72
| | | | Improve ATA mode/SATA revision control.
* Make ``ifconfig -l ether'' only list interfaces that speak Ethernet.will2009-11-251-3/+19
| | | | | PR: 118987 Approved by: ken (mentor)
* MFp4:mav2009-11-241-14/+69
| | | | | | | | | | | | - Extend XPT-SIM transfer settings control API. Now it allows to report to SATA SIM number of tags supported by each device, implement ATA mode and SATA revision negotiation for both SATA and PATA SIMs. - Make ahci(4) and siis(4) to use submitted maximum tag number, when scheduling requests. It allows to support NCQ on devices with lower tags count then controller supports. - Make PMP driver to report attached devices connection speeds. - Implement ATA mode negotiation between user settings, device and controller capabilities.
* Add some missing WDMA/UDMA modes.mav2009-11-221-0/+11
|
* Fix minor resource leak in a function.netchild2009-11-211-0/+2
| | | | | Reviewed by: luigi MFC after: 1 week
* Fix minor memory leak in a function.netchild2009-11-201-1/+3
| | | | MFC after: 1 week
* Fix minor resource leak in a function which was introduced by changing annetchild2009-11-201-1/+3
| | | | | | err() to a return in r106254. MFC after: 1 week
* Revert revision 199201 for now as it has introduced a kernel vulnerabilitydelphij2009-11-122-64/+1
| | | | and requires more polishing.
* Add interface description capability as inspired by OpenBSD.delphij2009-11-112-1/+64
| | | | MFC after: 3 months
* Add links to zfs(8) and zpool(8) to mount(8) manual page.trasz2009-11-111-1/+3
|
* More rational usage()des2009-11-101-3/+5
|
* Fix variable type.mav2009-11-091-1/+1
|
* Add support for ATA Power Management.mav2009-11-092-3/+134
|
* MFp4:mav2009-11-041-0/+4
| | | | | | - Add support for sector size > 512 bytes and physical sector of several logical sectors, introduced by ATA-7 specification. - Remove some obsoleted code.
* Just use devname(3) to print device names.ed2009-11-031-8/+1
| | | | | | Right now sysctl just prints the major/minor numbers of a device. Instead of rolling our own routine for this, we'd better just call devname(3) to perform a translation to a device name for us.
* Ensure 'kvm' is always initialized. If "-M" was not specified and thejhb2009-11-021-0/+1
| | | | | | | garbage value on the stack was not zero, then 'ddb capture' would try to use the garbage value as a kvm_t pointer. MFC after: 1 week
* Refine r198714, it's not as easy as just leaving the major number zero.brueffer2009-11-011-1/+0
| | | | | Submitted by: ed MFC after: 1 week
* The majors file was removed long ago, 0 should be used instead.brueffer2009-10-311-4/+2
| | | | | | PR: 139230 Submitted by: pluknet <pluknet@gmail.com> MFC after: 1 week
* MFp4:mav2009-10-311-40/+57
| | | | | Sync connection speed reporting with kernel. Report speed in identify command, same as done by inquiry.
* When extracting the capture buffer from a crashdump, only read the validjhb2009-10-291-10/+10
| | | | | | | | | | portion of the capture buffer (db_capture_bufoff vs db_capture_bufsize). This could result in outputting garbage (e.g. lots of 'p' characters if DIAGNOSTIC is enabled) after the end of the capture buffer. While here, fix a spelling nit. Reported by: Mikolaj Golub to my trociny of gmail MFC after: 3 days
* Fix parsing of mount options specified with -o in case an option withjh2009-10-261-5/+5
| | | | | | | | | value is preceded by an option without value (for example -o option1,option2=value). Options must be separated before searching for '='. Also compare pnextopt explicitly against NULL. PR: bin/134069 Approved by: trasz (mentor)
* - Initialize variable in order to avoid GCC warning and enable WARNS=6.lulf2009-10-262-2/+1
| | | | | PR: bin/139970 Submitted by: Ulrich Spörlein <uqs -at- spoerlein.net>
* Make dhclient use bootpc (68) as the source port for unicast DHCPREQUESTphilip2009-10-213-18/+41
| | | | | | | | | | | | packets instead of allowing the protocol stack to pick a random source port. This fixes the behaviour where dhclient would never transition from RENEWING to BOUND without going through REBINDING in networks which are paranoid about DHCP spoofing, such as most mainstream cable-broadband ISP networks. Reviewed by: brooks Obtained from: OpenBSD (partly - I'm not convinced their solution can work) MFC after: 1 week (pending re approval)
* Make input parsing in Farhenheit actually work.ed2009-10-211-5/+5
| | | | | | | | | | | | Don't clobber *p with '\0' when testing whether it has the value of 'F'. Just use the semantics of strtof() properly. If it returns p, we know that it parsed the string until it reached 'C' or 'F'. The code has not changed since it has been imported (r161951, Sep 3, 2006). Submitted by: Alexandre Perrin <kaworu@kaworu.ch> MFC after: 1 week
* The tunefs utility does not work on active filesystems.remko2009-10-211-2/+2
| | | | | | PR: docs/139705 Submitted by: Warren Block <wblock at wonkity dot com> Approved by: imp (mentor, implicit)
* Switch the default WARNS level for sbin/ to 6.ru2009-10-1951-39/+25
| | | | Submitted by: Ulrich Spörlein
* Clean up markup (mainly).ru2009-10-191-77/+149
|
* Properly re-create "-s size" argument to newfs(8).ru2009-10-191-1/+1
|
* Use printb() to display the "nd6 options=" line.hrs2009-10-121-29/+7
|
* Update for latest 802.11s changes in meshconf format.rpaulo2009-10-121-15/+21
| | | | MFC after: 3 days
* The cylinder group tag cg_initediblk needs to match the number of inodesmjacob2009-10-051-2/+8
| | | | | | | | | actually initialized. In the growfs case for UFS2, no inodes were actually being initialized and the number of inodes noted as initialized was the number of inodes per group. This created a filesystem that was deemed corrupted because the inodes thus added were full of garbage. MFC after: 1 month
* Static'ify internal methods and use prototype.delphij2009-09-281-20/+20
|
* Fethch more information from IDENTIFY result.mav2009-09-271-15/+48
|
* Fix several logic bugs in the previous IPv6 variable change andhrs2009-09-261-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | re-add $ipv6_enable support for backward compatibility. From UPDATING: 1. To use IPv6, simply define $ifconfig_IF_ipv6 like $ifconfig_IF for IPv4. For aliases, $ifconfig_IF_aliasN should be used. Note that both variables need the "inet6" keyword at the head. Do not set $ipv6_network_interfaces manually if you do not understand what you are doing. It is not needed in most cases. $ipv6_ifconfig_IF and $ipv6_ifconfig_IF_aliasN still work, but they are obsolete. 2. $ipv6_enable is obsolete. Use $ipv6_prefer and/or "inet6 accept_rtadv" keyword in ifconfig(8) instead. If you define $ipv6_enable=YES, it means $ipv6_prefer=YES and all configured interfaces have "inet6 accept_rtadv" in the $ifconfig_IF_ipv6. These are for backward compatibility. 3. A new variable $ipv6_prefer has been added. If NO, IPv6 functionality of interfaces with no corresponding $ifconfig_IF_ipv6 is disabled by using "inet6 ifdisabled" flag, and the default address selection policy of ip6addrctl(8) is the IPv4-preferred one (see rc.d/ip6addrctl for more details). Note that if you want to configure IPv6 functionality on the disabled interfaces after boot, first you need to clear the flag by using ifconfig(8) like: ifconfig em0 inet6 -ifdisabled If YES, the default address selection policy is set as IPv6-preferred. The default value of $ipv6_prefer is NO. 4. If your system need to receive Router Advertisement messages, define "inet6 accept_rtadv" in $ifconfig_IF_ipv6. The rc(8) scripts automatically invoke rtsol(8) when the interface becomes UP. The Router Advertisement messages are used for SLAAC (State-Less Address AutoConfiguration).
* MFp4:mav2009-09-221-12/+11
| | | | Reduce code duplication.
* Fix setfib(1) section number.brueffer2009-09-181-1/+1
| | | | | | PR: 133765 Submitted by: Konstantin Zolotukhin <erebus@gorodok.net> MFC after: 3 days
* Fixed markup.ru2009-09-171-3/+5
|
* Change the default transport protocol for use by the Mount protocolrmacklem2009-09-171-1/+1
| | | | | | | | | | | from UDP to TCP, so that it is consistent with TCP for NFS, which became the default at r176198. Without this change, doing an NFS mount against a server that only supports UDP would result in an unusable mount point if a transport protocol option wasn't specified for the mount. Approved by: kib (mentor) MFC after: 3 days
OpenPOWER on IntegriCloud