summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove references to ataraid(4) and atacontrol(8).joel2013-04-042-5/+1
|
* Remove all legacy ATA code parts, not used since options ATA_CAM enabled inmav2013-04-044-1056/+0
| | | | | | | | | most kernels before FreeBSD 9.0. Remove such modules and respective kernel options: atadisk, ataraid, atapicd, atapifd, atapist, atapicam. Remove the atacontrol utility and some man pages. Remove useless now options ATA_CAM. No objections: current@, stable@ MFC after: never
* Fix typo (devicde -> device).jimharris2013-04-031-1/+1
|
* Use errno and strerror to print more descriptive messages when operationsjimharris2013-03-261-27/+41
| | | | | | | | | | | fail in nvmecontrol(8). While here, use consistent checks of return values from stat, open and ioctl. Sponsored by: Intel Suggested by: carl Reviewed by: carl
* Add controller reset capability to nvme(4) and ability to explicitlyjimharris2013-03-262-2/+51
| | | | | | | | | | | | | | invoke it from nvmecontrol(8). Controller reset will be performed in cases where I/O are repeatedly timing out, the controller reports an unrecoverable condition, or when explicitly requested via IOCTL or an nvme consumer. Since the controller may be in such a state where it cannot even process queue deletion requests, we will perform a controller reset without trying to clean up anything on the controller first. Sponsored by: Intel Reviewed by: carl
* o Typo: IEE -> IEEE.maxim2013-03-251-1/+1
| | | | | | PR: docs/173069 Submitted by: Bjorn Heidotting MFC after: 1 week
* Note that output is in seconds, not msec.mckusick2013-03-241-2/+3
| | | | | | | | | KNF indentation. No functional change. No change to printf strings. No change to casting of printf arguments. Reported by: Bruce Evans
* Resolve clang compile errors on amd64/i386 for certain by casting.sbruno2013-03-241-4/+4
| | | | | | | compile tested with clang on i386, amd64 compile tested with gcc on i386, amd64, sparc64 Submitted by: delphij
* Minor formatting fix for printf() to fix clang builds.sbruno2013-03-241-2/+2
| | | | | Submitted by: db Reviewed by: gjb
* Revert 248634 and 248643 (e.g., restoring 248625 and 248639).mckusick2013-03-238-59/+158
| | | | Build verified by: Glen Barber (gjb@)
* Revert r248639 to fix build failure on head/gjb2013-03-231-4/+3
|
* Fix the build after addition of cylinder group cacheing (r248625)mckusick2013-03-231-3/+4
| | | | | Reported by: Glen Barber (gjb@) Pointy hat to: Kirk McKusick (mckusick@)
* Revert svn r248625sbruno2013-03-237-154/+56
| | | | | | | | Clang errors around printf could be trivially fixed, but the breakage in sbin/fsdb were to significant for this type of change. Submitter of this changeset has been notified and hopefully this can be restored soon.
* Speed up fsck by caching the cylinder group maps in pass1 somckusick2013-03-227-56/+154
| | | | | | | | | | | | | | | | | | | | that they do not need to be read again in pass5. As this nearly doubles the memory requirement for fsck, the cache is thrown away if other memory needs in fsck would otherwise fail. Thus, the memory footprint of fsck remains unchanged in memory constrained environments. This work was inspired by a paper presented at Usenix's FAST '13: www.usenix.org/conference/fast13/ffsck-fast-file-system-checker Details of this implementation appears in the April 2013 of ;login: www.usenix.org/publications/login/april-2013-volume-38-number-2. A copy of the April 2013 ;login: paper can also be downloaded from: www.mckusick.com/publications/faster_fsck.pdf. Reviewed by: kib Tested by: Peter Holm MFC after: 4 weeks
* The purpose of this change to the FFS layout policy is to reduce themckusick2013-03-227-11/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | running time for a full fsck. It also reduces the random access time for large files and speeds the traversal time for directory tree walks. The key idea is to reserve a small area in each cylinder group immediately following the inode blocks for the use of metadata, specifically indirect blocks and directory contents. The new policy is to preferentially place metadata in the metadata area and everything else in the blocks that follow the metadata area. The size of this area can be set when creating a filesystem using newfs(8) or changed in an existing filesystem using tunefs(8). Both utilities use the `-k held-for-metadata-blocks' option to specify the amount of space to be held for metadata blocks in each cylinder group. By default, newfs(8) sets this area to half of minfree (typically 4% of the data area). This work was inspired by a paper presented at Usenix's FAST '13: www.usenix.org/conference/fast13/ffsck-fast-file-system-checker Details of this implementation appears in the April 2013 of ;login: www.usenix.org/publications/login/april-2013-volume-38-number-2. A copy of the April 2013 ;login: paper can also be downloaded from: www.mckusick.com/publications/faster_fsck.pdf. Reviewed by: kib Tested by: Peter Holm MFC after: 4 weeks
OpenPOWER on IntegriCloud