#
fba73a40 |
| 29-Jan-2024 |
John Baldwin <jhb@FreeBSD.org> |
nvmecontrol: Use the NVMEV macro instead of expanded versions
Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D43597
|
#
32e86a82 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remo
sbin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
ae5a522c |
| 21-Sep-2021 |
Allan Jude <allanjude@FreeBSD.org> |
nvmecontrol: Display Metadata and Sanitize capabilities of the device
Determine if a device supports "Extended" or "Separate" metadata, and what the current metadata setting is (None, Extended, Sepa
nvmecontrol: Display Metadata and Sanitize capabilities of the device
Determine if a device supports "Extended" or "Separate" metadata, and what the current metadata setting is (None, Extended, Separate)
Also determine if the device supports: - Sanitize Crypto Erase - Sanitize Block Erase - Sanitize Overwrite
Reviewed by: chuck Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. X-NetApp-PR: #49 Differential Revision: https://reviews.freebsd.org/D31067
show more ...
|
#
d379886a |
| 14-Jul-2021 |
Alexander Motin <mav@FreeBSD.org> |
Filter out LBA formats with LBA Data Size of 0.
According to the spec: "If the value reported is 0h, then LBA format is not supported / used or is not currently available".
MFC after: 1 week
|
Revision tags: release/13.0.0 |
|
#
5dc463f9 |
| 13-Nov-2020 |
Alexander Motin <mav@FreeBSD.org> |
Improve nvmecontrol error reporting.
MFC after: 1 week Sponsored by: iXsystems, Inc.
|
Revision tags: release/12.2.0 |
|
#
c7aa572c |
| 31-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
81614d23 |
| 23-Jul-2020 |
Alexander Motin <mav@FreeBSD.org> |
Add missing newlines.
MFC after: 3 days
|
Revision tags: release/11.4.0 |
|
#
1f15d49e |
| 20-Apr-2020 |
Alexander Motin <mav@FreeBSD.org> |
Open device with O_RDONLY when command is non-invasive.
This allows to use some of the subcommands against mounted nvd devices.
MFC after: 1 week Sponsored by: iXystems, Inc.
|
#
6995fb5e |
| 02-Apr-2020 |
David Bright <dab@FreeBSD.org> |
Fix various Coverity-detected errors in nvmecontrol
This fixes several Coverity-detected errors in nvmecontrol. While in here, a couple additional errors with shift/mask confusion that were not diag
Fix various Coverity-detected errors in nvmecontrol
This fixes several Coverity-detected errors in nvmecontrol. While in here, a couple additional errors with shift/mask confusion that were not diagnosed by Coverity are also fixed.
CIDs addressed: 1040299, 1040300, 1403972, 1403973, 1403985, 1403988, 1403990, 1404374, 1404427, 1404469, 1404510, 1404534, 1418118
CID 1403657 (resource leak of shared library handle) was marked "intentional" in the Coverity scan database.
Reviewed by: vangyzen, robert.herndon_dell.com Reviewed by: daniel.william.ryan_gmail.com (earlier version) Reviewed by: rramsden_isilon.com (earlier version), imp MFC after: 5 days Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D24203
show more ...
|
Revision tags: release/12.1.0 |
|
#
4035e778 |
| 14-Aug-2019 |
Alexander Motin <mav@FreeBSD.org> |
Print few more useful identify fields.
MFC after: 2 weeks
|
#
a7bf63be |
| 01-Aug-2019 |
Alexander Motin <mav@FreeBSD.org> |
Add IOCTL to translate nvdX into nvmeY and NSID.
While very useful by itself, it also makes `nvmecontrol` not depend on hardcoded device names parsing, that in its turn makes simple to take nvdX (an
Add IOCTL to translate nvdX into nvmeY and NSID.
While very useful by itself, it also makes `nvmecontrol` not depend on hardcoded device names parsing, that in its turn makes simple to take nvdX (and potentially any other) device names as arguments.
Also added IOCTL bypass from nvdX to respective nvmeYnsZ makes them interchangeable for management purposes.
MFC after: 2 weeks Sponsored by: iXsystems, Inc.
show more ...
|
#
3b3dd3f7 |
| 31-Jul-2019 |
Alexander Motin <mav@FreeBSD.org> |
Feature-complete NVMe Namespace Management.
This adds several previously missed but important subcommands to list namespaces and controllers. It also fixes few previously added but just found with
Feature-complete NVMe Namespace Management.
This adds several previously missed but important subcommands to list namespaces and controllers. It also fixes few previously added but just found with real testing to be broken subcommands.
Also while there, add possibility to explicitly specify nsid for `nvmecontrol identify` subcommand. It may be useful to specify nsids not having own devices, for example 0xffffffff, or just newly created ones.
MFC after: 2 weeks Relnotes: yes Sponsored by: iXsystems, Inc.
show more ...
|
#
a63915c2 |
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
#
f634b4c1 |
| 16-Jul-2019 |
Warner Losh <imp@FreeBSD.org> |
Create generic command / arg parsing routines
Create a set of routines and structures to hold the data for the args for a command. Use them to generate help and to parse args. Convert all the curren
Create generic command / arg parsing routines
Create a set of routines and structures to hold the data for the args for a command. Use them to generate help and to parse args. Convert all the current commands over to the new format. "comnd" is a hat-tip to the TOPS-20 %COMND JSYS that (very) loosely inspired much of the subsequent command line notions in the industry, but this is far simpler (the %COMND man page is longer than this code) and not in the kernel... Also, it implements today's de-facto command [verb]+ [opts]* [args]* format rather than the old, archaic TOPS-20 command format :)
This is a snapshot of a work in progress to get the nvme passthru stuff committed. In time it will become a private library and used by some other programs in the tree that conform to the above pattern.
Differential Revision: https://reviews.freebsd.org/D19296
show more ...
|
Revision tags: release/11.3.0 |
|
#
7648bc9f |
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|
#
1aed4995 |
| 05-May-2019 |
Alexander Motin <mav@FreeBSD.org> |
Decode Deallocate Logical Block Features.
MFC after: 1 week
|
#
67350cb5 |
| 09-Dec-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340918 through r341763.
|
Revision tags: release/12.0.0 |
|
#
0d095c23 |
| 06-Dec-2018 |
Warner Losh <imp@FreeBSD.org> |
Const poison the command interface
Make the pointers we pass into the commands const, also make the linker set mirrors const.
Suggested by: cem@ Sponsored by: Netflix Differential Revision: https:/
Const poison the command interface
Make the pointers we pass into the commands const, also make the linker set mirrors const.
Suggested by: cem@ Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D18459
show more ...
|
#
d4fdb249 |
| 03-Dec-2018 |
Warner Losh <imp@FreeBSD.org> |
Usage cleanup pt 2
Eliminage redundant spaces and nvmecontrol at start of all the usage strings. Update the usage printing code to add them back when presenting to the user. Allow multi-line usage m
Usage cleanup pt 2
Eliminage redundant spaces and nvmecontrol at start of all the usage strings. Update the usage printing code to add them back when presenting to the user. Allow multi-line usage messages and print proper leading spaces for lines starting with a space.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D18403
show more ...
|
#
7d923c13 |
| 03-Dec-2018 |
Warner Losh <imp@FreeBSD.org> |
Usage cleanup pt 1
Provide a usage() function that takes a struct nvme_function pointer and produces a usage mssage. Eliminate all now-redundant usage functions. Propigate the new argument through t
Usage cleanup pt 1
Provide a usage() function that takes a struct nvme_function pointer and produces a usage mssage. Eliminate all now-redundant usage functions. Propigate the new argument through the program as needed. Use common routine to print usage.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D18403
show more ...
|
#
a13a291a |
| 03-Dec-2018 |
Warner Losh <imp@FreeBSD.org> |
Move nvmecontrol to using linker sets for commands
More commands will be added to nvmecontrol. Also, there will be a few more vendor commands (some of which may need to remain private to companies w
Move nvmecontrol to using linker sets for commands
More commands will be added to nvmecontrol. Also, there will be a few more vendor commands (some of which may need to remain private to companies writing them). The first step on that journey is to move to using linker sets to dispatch commands. The next step will be using dlopen to bring in the .so's that have the command that might need to remain private for seamless integration.
Similar changes to this will be needed for vendor specific log pages.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D18403
show more ...
|
Revision tags: release/11.2.0 |
|
#
e505b7ec |
| 14-Jun-2018 |
Warner Losh <imp@FreeBSD.org> |
Make it possible to use print_controller from another program
Rename print_controller to nvme_print_controller. Put it in its own file for easy inclusion. Move util.c to be nc_util.c to not conflict
Make it possible to use print_controller from another program
Rename print_controller to nvme_print_controller. Put it in its own file for easy inclusion. Move util.c to be nc_util.c to not conflict with camcontrol. add nvecontrol_ext.h to define shared interfaces.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D15371
show more ...
|
#
2bac48c2 |
| 07-Jun-2018 |
Justin Hibbits <jhibbits@FreeBSD.org> |
Print Maximum Data Transfer Size as a long rather than int
PowerPC has PAGE_SIZE as a long, not an int. This causes the compiler to throw a format mismatch warning on this print. To work around th
Print Maximum Data Transfer Size as a long rather than int
PowerPC has PAGE_SIZE as a long, not an int. This causes the compiler to throw a format mismatch warning on this print. To work around the difference, print it as a long instead of an int, and force the argument to a long.
Reviewed By: imp Differential Revision: https://reviews.freebsd.org/D15653
show more ...
|