summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix build.glebius2013-06-272-2/+2
|
* Add firmware replacement and activation support to nvmecontrol(8) throughjimharris2013-06-275-1/+362
| | | | | | | | | | | | | | | | | | | | a new firmware command. NVMe controllers may support up to 7 firmware slots for storing of different firmware revisions. This new firmware command supports firmware replacement (i.e. firmware download) with or without immediate activation, or activation of a previously stored firmware image. It also supports selection of the firmware slot during replacement operations, using IDENTIFY information from the controller to check that the specified slot is valid. Newly activated firmware does not take effect until the new controller reset, either via a reboot or separate 'nvmecontrol reset' command to the same controller. Submitted by: Joe Golio <joseph.golio@emc.com> Obtained from: EMC / Isilon Storage Division MFC after: 3 days
* Add log page support to nvmecontrol(8) through a new logpage command.jimharris2013-06-265-1/+412
| | | | | | | | | | This includes pretty printers for all of the standard NVMe log pages (Error, SMART/Health, Firmware), as well as hex output for non-standard or vendor-specific log pages. Submitted by: Joe Golio <joseph.golio@emc.com> Obtained from: EMC / Isilon Storage Division MFC after: 3 days
* Add generalized helper functions for printing hex data as part ofjimharris2013-06-263-40/+51
| | | | | | | | nvmecontrol commands. Submitted by: Joe Golio <joseph.golio@emc.com> Obtained from: EMC / Isilon Storage Division MFC after: 3 days
* Ensure that a device node is specified when invoking the identify or resetjimharris2013-06-263-3/+27
| | | | | | | | | | commands. Also improve the checking of device node names, so that better error messages are displayed when incorrect names are specified. Sponsored by: Intel MFC after: 3 days
* Create #defines for NVME_CTRLR_PREFIX and NVME_NS_PREFIX for the "nvme"jimharris2013-06-263-4/+8
| | | | | | | | and "ns" strings, rather than hardcoding the string values throughout the nvmecontrol code base. Sponsored by: Intel MFC after: 3 days
* Add an nvme_function structure array, defining the name, C function andjimharris2013-06-262-16/+32
| | | | | | | | | | | | usage message for each nvmecontrol command. This helps reduce some code clutter both now and for future commits which will add logpage and firmware support to nvmecontrol(8). Also move helper function prototypes to the end of the header file, after the per-command functions. Sponsored by: Intel MFC after: 3 days
* Break out code related to the reset command into a separate source file.jimharris2013-06-264-32/+74
| | | | | Sponsored by: Intel MFC after: 3 days
* Break out code related to the perftest command into a separate file.jimharris2013-06-264-140/+183
| | | | | Sponsored by: Intel MFC after: 3 days
* Break out code related to the identify command into a separate source file.jimharris2013-06-264-280/+323
| | | | | Sponsored by: Intel MFC after: 3 days
* Break out code related to the devlist command into a separate source file.jimharris2013-06-264-92/+175
| | | | | Sponsored by: Intel MFC after: 3 days
* Add separate *_usage() functions for each nvmecontrol command.jimharris2013-06-261-7/+31
| | | | | Sponsored by: Intel MFC after: 3 days
* Add an open_dev() helper function to be used in the various placesjimharris2013-06-261-103/+63
| | | | | | | | where nvmecontrol needs to open a handle to a controller or namespace device node. Sponsored by: Intel MFC after: 3 days
* - Use length of _PATH_DEV instead of a hardcoded value[*].hrs2013-06-211-6/+6
| | | | | | | - Use MD_NAME for "md". Pointed out by: trasz [*] MFC after: 1 week
* eturn -1 when the specified backing store file is not found in the mdhrs2013-06-201-5/+9
| | | | | | device list. MFC after: 1 week
* - Add "-f file" support to listing mode (-l). When a -f option ishrs2013-06-202-25/+45
| | | | | | | | | specified, only md(4) devices which have the specified file as backing store are displayed. - Use MD_NAME instead of "md". - Use _PATH_DEV instead of "/dev/". MFC after: 1 week
* Let hastd use C11 atomics.ed2013-06-151-5/+5
| | | | | | | C11 atomics now work on all the architectures. Have at least a single piece of software in our base system that uses C11 atomics. This somewhat makes it less likely that we break it because of LLVM imports, etc.
* Improve firmware download status check. Previous check was insufficient formav2013-06-141-5/+3
| | | | | ATA since it ignored transport errors like command timeouts, while for SCSI it was just wrong.
* Fix build after r251654.mav2013-06-121-4/+4
|
* Use CAM_DIR_NONE for requests without data.mav2013-06-121-4/+4
| | | | | | Wrong values there confuse some drivers. MFC after: 1 week
* Move the check whether the clear flag is set. This has 2 advantagesflo2013-06-111-4/+3
| | | | | | | | | | | - When operating on a core file (-M) and -c is specified we don't clear the message buffer of the running system. - If we don't have permission to clear the buffer print the error message only. That's what Linux does in this case, where this feature was ported from, and it ensures that the error message doesn't get lost in the noise. Discussed with: antoine, cognet Approved by: cognet
* Change the set and unset ctlreqs by making the index argument optional.marcel2013-06-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows setting attributes on tables. One simply does not provide an index in that case. Otherwise the entry corresponding the index has the attribute set or unset. Use this change to fix a relatively longstanding bug in our GPT scheme that's the result of rev 198097 (relatively harmless) followed by rev 237057 (damaging). The damaging part being that our GPT scheme always has the active flag set on the PMBR slice. This is in violation with EFI. Existing EFI implementions for both x86 and ia64 reject the GPT. As such, GPT disks created by us aren't usable under EFI because of that. After this change, GPT disks never have the active flag set on the PMBR slice. In order to make the GPT disk bootable under some x86 BIOSes, the reason of rev 198097, one must now set the active attribute on the gpt table. The kernel will apply this to the PMBR slice For (S)ATA: gpart set -a active ada0 To fix an existing GPT disk that has the active flag set in the PMBR, and that does not need the flag, use (again for (S)ATA): gpart unset -a active ada0 The EBR, MBR & PC98 schemes, which also impement at least 1 attribute, now check to make sure the entry passed is valid. They do not have attributes that apply to the table.
* Fix a bug that the gateway address was not shown when a -gateway modifierhrs2013-06-091-0/+1
| | | | was used.
* Revert r238399.jh2013-06-071-6/+1
| | | | | | | | | | The "failok" option doesn't have any effect at all unless specified in fstab(5) and combined with the -a flag. The "failok" option is already documented in fstab(5). PR: 177630 No objection: eadler MFC after: 1 week
* 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
OpenPOWER on IntegriCloud