]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add `nvmecontrol sanitize` command.
authormav <mav@FreeBSD.org>
Sat, 3 Aug 2019 19:24:56 +0000 (19:24 +0000)
committermav <mav@FreeBSD.org>
Sat, 3 Aug 2019 19:24:56 +0000 (19:24 +0000)
commitb8ffc12568b7c4b204593d4b39e07b0a133cdc75
tree3dd4acfcec361084ce6a0559c69fa5f8e09f24f0
parent60e0953ea8e4771fddd74446760144f5a0c6dd86
Add `nvmecontrol sanitize` command.

It allows to delete all user data from NVM subsystem in one of 3 methods.
It is a close equivalent of SCSI SANITIZE command of `camcontrol sanitize`,
so I tried to keep arguments as close as possible.

While there, fix supported sanitize methods reporting in `identify`.

MFC after: 2 weeks
Relnotes: yes
Sponsored by: iXsystems, Inc.
sbin/nvmecontrol/Makefile
sbin/nvmecontrol/identify_ext.c
sbin/nvmecontrol/nvmecontrol.8
sbin/nvmecontrol/sanitize.c [new file with mode: 0644]