summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Improve compatibility with old flex and fix build with GCC.jkim2013-05-223-3/+5
|
* Fix ipfw(8) sets of ipv6 addresses handling.melifaro2013-05-181-14/+24
| | | | | | | Conditionally use stack buffer instead of calling strdup(). PR: bin/104921 MFC after: 2 weeks
* Constify string pointers.delphij2013-05-161-3/+3
| | | | | Verified with: sha256(1) MFC after: 2 weeks
* When running the -m option to generate a newfs(8) command suitable formckusick2013-05-162-3/+27
| | | | | | | | | | | | | | | | | recreating the filesystem, check for and output the -i, -k, and -l options if appropriate. Note the remaining deficiencies of the -m option in the dumpfs(8) manual page. Specifically that newfs(8) options -E, -R, -S, and -T options are not handled and that -p is not useful so is omitted. Also document that newfs(8) options -n and -r are neither checked for nor output but should be. The -r flag is needed if the filesystem uses gjournal(8). PR: bin/163992 Reported by: Dieter <freebsd@sopwith.solgatos.com> Submitted by: Andy Kosela <akosela@andykosela.com> MFC after: 1 week
* Clean up trailing whitespace.mckusick2013-05-161-3/+3
| | | | | Submitted by: Andy Kosela MFC after: 1 week
* sbin/camcontrol/camcontrol.casomers2013-05-151-2/+6
| | | | | | | | | | | | If an expander returns 0x00 (no device attached) in the ATTACHED DEVICE field of the SMP DISCOVER response, ignore the value of ATTACHED SAS ADDRESS, because it is invalid. Some expanders zero out the address when the attached device is removed, but others do not. Section 9.4.3.10 of the SAS Protocol Layer 2 revision 04b does not require them to do so. Approved by: ken (mentor) MFC after: 3 weeks
* mdoc sweepjoel2013-05-132-4/+10
|
* mdoc sweep.joel2013-05-121-1/+3
|
* Get rid of libl dependency. We needed it only to provide yywrap. Buttrociny2013-05-113-3/+4
| | | | | | | yywrap is not necessary when parsing a single hast.conf file. Suggested by: kib Reviewed by: pjd
* Bump .Dd for recent content change.eadler2013-05-101-1/+1
| | | | Reported by: delphij
* Add support for 'dmesg -c' which clears the dmesg buffer after it haseadler2013-05-102-6/+18
| | | | | | | | | | | been printed. This provides compatibility with other *nix systems (including Linux). While here use stdbool booleans for 'all'. PR: bin/178295 Submitted by: Levent Serinol <lserinol@gmail.com> Reviewed by: will
* Remove EOL whitespace.joel2013-05-081-1/+1
|
* mdoc: new sentence, new line.joel2013-05-081-2/+4
|
* Add vlan configuration support to etherswitchcfg.adrian2013-05-082-10/+242
| | | | | | | | | | This adds the support to the config keyword (vlan operation mode), ports flags, prints the vlan mode and vlan capabilities. It also adds some basic information to usage() and support the keyword 'help' as a shortcut to usage(). The manual page is also updated with the new options. Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* Allow the use of lowercase 'yes'eadler2013-05-081-1/+1
| | | | | PR: bin/178422 Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
* Remove includes for old versions of FreeBSD.eadler2013-05-064-12/+0
| | | | | | Reviewed by: stass Obtained From: DragonFlyBSD MFC After: 1 week
* Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Grouphrs2013-05-042-9/+35
| | | | | | | | | | | | | | | | | | Address. Although KAME implementation used FF02:0:0:0:0:2::/96 based on older versions of draft-ietf-ipngwg-icmp-name-lookup, it has been changed in RFC 4620. The kernel always joins the /104-prefixed address, and additionally does /96-prefixed one only when net.inet6.icmp6.nodeinfo_oldmcprefix=1. The default value of the sysctl is 1. ping6(8) -N flag now uses /104-prefixed one. When this flag is specified twice, it uses /96-prefixed one instead. Reviewed by: ume Based on work by: Thomas Scheffler PR: conf/174957 MFC after: 2 weeks
* Introduce and use new flag -L to mount for mounting only late filesystems.crees2013-05-042-2/+16
| | | | | | | | | | Previously, rc.d/mountlate mounted *all* filesystems, causing problems with background NFS mounts being mounted twice. PR: conf/137629 Submitted by: eadler (original concept) Reviewed by: mjg Approved by: hrs
* Improve compatibility with recent flex from flex.sourceforge.net.jkim2013-05-031-2/+3
|
* Prefer using the C++ version of the standard headers. These place theeadler2013-05-021-6/+7
| | | | | | | | names within the std namespace (and possibly within the global namespace). The main advantage is that the C++ versions can provide optimized versions or simplified interfaces.
* Adapt to the fact that minidumps are now on by default.joel2013-04-301-4/+11
| | | | PR: 177188
* Style nit.des2013-04-291-1/+2
|
* Add a -Z option which zeroes unused blocks. It can be combined with -E,des2013-04-295-7/+56
| | | | | | | in which case unused blocks are first zeroed and then erased. Reviewed by: mckusick MFC after: 3 weeks
* Partially revert my last change.ed2013-04-271-5/+5
| | | | | I forgot that I still had a locally applied patch to my copy of Clang that needs to be pushed in before we should use C11 atomics.
* Use C11 <stdatomic.h> instead of our non-standard <machine/atomic.h>.ed2013-04-272-11/+21
| | | | Reviewed by: pjd
* According to devctl(4), clients must read events whole; they may notasomers2013-04-261-1/+1
| | | | | | | | | | | | piece them together from multiple reads(). It's as if /dev/devctl is a datagram device instead of a stream device. However, devd's internal buffer was too small (1025 bytes) to read an entire ereport.fs.zfs.checksum event (variable, up to ~1300 bytes). This commit enlarges the buffer to 8k. Reviewed by: imp Approved by: ken (mentor) MFC after: 2 weeks
* mdoc: remove superfluous paragraph macro.joel2013-04-251-2/+0
|
* Don't free memory that is going to be used as error string.glebius2013-04-251-3/+1
| | | | | PR: bin/178121 Submitted by: Garrett Cooper <yaneurabeya gmail.com>
* Adds Host Protected Area (HPA) support for ATA disks to camcontrolsmh2013-04-252-2/+785
| | | | | | Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Fix error check.mckusick2013-04-231-1/+1
| | | | | Submitted by: Andrey Chernov (ache@) MFC after: 3 days
* Minor clarificiation.joel2013-04-221-2/+2
| | | | PR: 177455
* Use a higher TTL (128) for DHCP packets. This matches the ISC DHCP client.jhb2013-04-221-1/+1
| | | | | PR: bin/170279 MFC after: 1 week
* Convert over the etherswitch framework to use VLAN IDs per port, ratheradrian2013-04-222-10/+11
| | | | | | | | | | | | | | | | | | | | | than VLAN groups. Some chips (eg this rtl8366rb) has a VLAN group per port - you first define a set of VLANs in a vlan group, then you assign a VLAN group to a port. Other chips (eg the AR8xxx switch chips) have a VLAN ID array per port - there's no group per se, just a list of vlans that can be configured. So for now, the switch API will use the latter and rely on drivers doing the heavy lifting if one wishes to use the VLAN group method. Maybe later on both can be supported. PR: kern/177878 PR: kern/177873 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray
* etherswitchcfg(8) crashes when you don't set vlangroup members.adrian2013-04-221-2/+5
| | | | | | | Fix this to require an argument. PR: kern/177872 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
* Initialise this to zero before using it to configure the vlangroupadrian2013-04-221-0/+1
| | | | | | | information. PR: kern/177871 Submitted by: Luiz Otavio O Souza <loos.br@gmail.com>
* Unbreak the build of newfs_nandfs.ed2013-04-211-16/+19
| | | | | Mark global variables static. While there, make some small style(9) cleanups and remove a variable that is unused.
* Remove code duplication.trociny2013-04-211-11/+1
|
* Move EXAMPLES descriptions to before the actual command.joel2013-04-211-35/+34
| | | | | PR: 177870 Submitted by: Bjorn Heidotting <b.heidotting@yahoo.com>
* Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-195-0/+6
| | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* Use arc4random() instead of random().delphij2013-04-151-6/+1
| | | | MFC after: 2 weeks
* update information about debugging sysctl...jmg2013-04-141-3/+6
| | | | MFC after: 1 week
* Remove the NVME_IDENTIFY_CONTROLLER and NVME_IDENTIFY_NAMESPACE IOCTLs and ↵jimharris2013-04-121-34/+86
| | | | | | | | replace them with the NVMe passthrough equivalent. Sponsored by: Intel
* Minor spelling and grammar fixes.joel2013-04-111-1/+1
|
* Remove contractions.joel2013-04-113-3/+3
|
* Remove kernel options from the SYNOPSIS. They are already documented in thejoel2013-04-111-27/+0
| | | | geom(4) manual page SYNOPSIS.
* Prevent the creation of an unused variable.ed2013-04-081-1/+1
| | | | | | | We're only interested in the enumeration fields; we don't want to create a variable to store them. MFC after: 1 week
* mdoc: new sentence should be on a new line. Also remove EOL whitespace whilejoel2013-04-061-3/+4
| | | | here.
* mdoc: remove superfluous paragraph macro.joel2013-04-051-3/+0
|
* Adds security options to camcontrol this includes the ability to secure erasesmh2013-04-042-61/+1110
| | | | | | | | | | disks such as SSD's Adds the ability to run ATA commands via the SCSI ATA Pass-Through(16) comand Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks
* Minor rewording.joel2013-04-041-2/+2
| | | | Discussed with: mav
OpenPOWER on IntegriCloud