nvme - Add nvmectl userland utility

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 18 June 2016 02:02 UTC

- Add nvmectl, a general userland utility that we will use to retrieve status and do interesting things to nvme devices.

Nominally feature the command to allow nvmeX devices to be specified at the end, and to apply the command to all nvme devices if none are specified.

- Implement 'nvmectl info'. This command retrieves the SMART info from specified controllers and prints it out.

7aa4eb9 nvme - Add nvmectl userland utility
sbin/Makefile | 1 +
sbin/nvmectl/Makefile | 11 +++
sbin/nvmectl/nvmectl.c | 246 ++++++++++++++++++++++++++++++++++++++++++++++++
sbin/nvmectl/nvmectl.h | 51 ++++++++++
sbin/nvmectl/subs.c | 46 +++++++++
5 files changed, 355 insertions(+)

Upstream: gitweb.dragonflybsd.org


  • Share