summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix an xref.brueffer2009-09-171-1/+1
| | | | | | PR: 138833 Submitted by: Alex Keda <admin@lissyara.su> MFC after: 3 days
* Fix the example, -w is the right switch for write failure probability.brueffer2009-09-171-3/+3
| | | | | | | PR: 136219 Submitted by: Kouki Hashimoto <hsmtkk@gmail.com> Patch by: gavin MFC after: 3 days
* Modify mount(8) to skip MNT_IGNORE file systems by default, just like df(1)pjd2009-09-142-0/+9
| | | | | | | | | does. This is not POLA violation, because there is no single file system in the base that use MNT_IGNORE currently, although ZFS snapshots will be mounted with MNT_IGNORE after next commit. Reviewed by: kib MFC after: 3 days
* Document accept_rev_ethip_ver and send_rev_ethip_ver flags ofhrs2009-09-121-0/+19
| | | | | | EtherIP (gif(4) + if_bridge(8)). MFC after: 3 days
* Improve flexibility of receiving Router Advertisement andhrs2009-09-124-9/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | automatic link-local address configuration: - Convert a sysctl net.inet6.ip6.accept_rtadv to one for the default value of a per-IF flag ND6_IFF_ACCEPT_RTADV, not a global knob. The default value of the sysctl is 0. - Add a new per-IF flag ND6_IFF_AUTO_LINKLOCAL and convert a sysctl net.inet6.ip6.auto_linklocal to one for its default value. The default value of the sysctl is 1. - Make ND6_IFF_IFDISABLED more robust. It can be used to disable IPv6 functionality of an interface now. - Receiving RA is allowed if ip6_forwarding==0 *and* ND6_IFF_ACCEPT_RTADV is set on that interface. The former condition will be revisited later to support a "host + router" box like IPv6 CPE router. The current behavior is compatible with the older releases of FreeBSD. - The ifconfig(8) now supports these ND6 flags as well as "nud", "prefer_source", and "disabled" in ndp(8). The ndp(8) now supports "auto_linklocal". Discussed with: bz and jinmei Reviewed by: bz MFC after: 3 days
* Actually component with the greatest priority is used by the prefer balancepjd2009-09-091-1/+1
| | | | algorithm.
* Use printb() instead of rolling its own routine to displayhrs2009-09-071-20/+4
| | | | | | | bits in options=<>. Pointed out by: ume MFC after: 3 days
* Suppress an options line when no bit is on.ume2009-09-071-0/+2
| | | | | Reviewed by: hrs MFC after: 3 days
* Add support for changing providers priority.pjd2009-09-062-9/+19
| | | | Submitted by: Mel Flynn
* Update copyright years.pjd2009-09-061-1/+1
|
* For any given subcommand allow to specify multi-line usage (separated by \n).pjd2009-09-061-2/+12
| | | | Submitted by: Mel Flynn
* remove stale references to RTF_CLONING and RTF_LLINFOkmacy2009-09-041-21/+0
| | | | MFC after: 3 days
* Add to `camcontrol cmd` support for sending arbitrary ATA commands.mav2009-09-042-52/+141
| | | | | | It could be used for broad range of tasks, such as configuring drive power management modes, caching, security and any other features and tasks, not supported by existing drivers.
* Short ATA command format has 28bit address, not 36bit.mav2009-08-301-2/+2
| | | | | | Rename ata_36bit_cmd() into ata_28bit_cmd(), while it didn't become legacy. MFC after: 2 days
* MFp4:mav2009-08-301-27/+120
| | | | | | | - Tune protocol version reporting, - Add supported DMA/PIO modes reporting. - Fix IDENTIFY for ATAPI devices. - Remove confusing "-" for NCQ status.
* - Add a SIGINFO handler for savecore.lulf2009-08-251-1/+17
|
* ANSIfy functions declarations, adjust prototypes. Rename local variablecharnier2009-08-251-75/+58
| | | | to not conflict with err().
* Remove (c) line.ivoras2009-08-231-1/+0
| | | | | | Requested by: pjd Approved by: gnn (mentor) MFC after: 1 month
* Remove the dependency on the kernel -- in particular the gctl request tomarcel2009-08-191-18/+23
| | | | | | | | | the GEOM_BSD class -- to translate the absolute offsets in the label to relative ones. This makes bslabel(8) work correctly with GEOM_PART and also when the BSD label is nested under arbitrary partitioning schemes. Inspired by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Approved by: re (kib)
* Be more precise how to get fsids - 'mount -v' doesn't show fsids unless is runpjd2009-08-171-1/+2
| | | | | | by root. Approved by: re (kib)
* Emit a proper error message instead of dumping core when 1)marcel2009-08-161-2/+14
| | | | | | | | | | | GEOM_PART does not exist in the kernel, and 2) the GEOM in question does not exist. Additionally abort in case of programming errors that result in neither the class nor geom not being present in the gctl request. Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru> Approved by: re (kib)
* Delete the descriptions of the gssname and allgssname optionss fromrmacklem2009-07-291-42/+1
| | | | | | | mount_nfs.8 since these options are not implemented in FreeBSD8. This is content change for the man page. Approved by: re (kensmith), kib (mentor)
* Mesh fixes, namely:rpaulo2009-07-271-11/+14
| | | | | | | | | | | | * don't clobber proxy entries * HWMP seq number processing, including discard of old frames * flush routing table entries based on nexthop * print route flags in ifconfig * more debugging messages and comments Proxy changes submitted by sam. Approved by: re (kib)
* Make ifconfig ifN -vnet <jname|jid> actually work:bz2009-07-261-7/+20
| | | | | | | | | | - fix ifconfig to ignore the non-existent interface in the current network stack in case of '-vnet'. - in ifconfig: actually use the local variables defined for the vnet functions rather than modifying the global. Reviewed by: rwatson Approved by: re (kib)
* Fix the logic to count the number of "live interfaces". With this changesam2009-07-211-9/+11
| | | | | | | | dhclient now terminates when the underlying ifnet is destroyed (e.g. on card eject). Reviewed by: brooks Approved by: re (kib)
OpenPOWER on IntegriCloud