summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Correct a typo in comment.delphij2013-07-011-1/+1
|
* Make hastctl(1) ('list' command) output a worker pid.trociny2013-07-012-0/+5
| | | | | Reviewed by: pjd MFC after: 3 days
* Correct some grammar.schweikh2013-06-301-18/+18
|
* Do not display a warning message in a jail without AF_INET6 support.hrs2013-06-301-1/+1
| | | | MFC after: 3 days
* - Modify swapon(8) so that it uses most of geli(8) defaults for swap,delphij2013-06-291-160/+159
| | | | | | | | | | | | | | | | | | | | | which is presently: AES-XTS, no authentication. Create provider with pagesize as sectorsize by default. - Rewrite parsing code for geli(8)-backed swap options, now options are required to be exact match, and unrecognized options will trigger a warning. - Don't initialize GELI device if it's already initialized. This restores previous behavior. - Don't duplicate file descriptor when working with geli(8) and gbde(8) as there is no need to communicate with the utility other than exit status. - When calling swap_on_off_* routines, which_prog can only be SWAP_ON or SWAP_OFF. Eliminate unneeded case branches by replacing switch with if's. - Plug a few memory leaks. Reviewed by: hrs (but bugs are mine) MFC after: 1 week X-MFC-with: r252310, r252332, r252345
* Don't let hastd use C11 atomics.ed2013-06-291-5/+5
| | | | | | | Due to possible concerns about the stability of C11 atomics, use our existing atomics API instead. Requested by: pjd
* mdoc: remove EOL whitespace.joel2013-06-291-1/+1
|
* - Trim an unused and bogus Makefile for mount_smbfs.davide2013-06-282-1/+3
| | | | | | - Reconnect with some minor modifications, in particular now selsocket() internals are adapted to use sbintime units after recent'ish calloutng switch.
* Fix build with gcc.hrs2013-06-281-3/+5
|
* Fix build.hrs2013-06-281-11/+11
| | | | Spotted by: gjb
* - Add vnode-backed swap space specification support. This is enabled whenhrs2013-06-272-29/+566
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this: md none swap sw,file=/swap.bin 0 0 - Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following: /dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options. swapctl(8) can understand an encrypted device in the command line like this: # swapctl -a /dev/ada2p1.bde - "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs. - rc.d script change: rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option These changes alleviate a race condition between device creation/removal and swapon/swapoff. MFC after: 1 week Reviewed by: wblock (manual page)
* 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>
OpenPOWER on IntegriCloud