Page MenuHomeFreeBSD

Make camcontrol identify work with nda devices
ClosedPublic

Authored by imp on May 9 2018, 7:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 3:36 AM
Unknown Object (File)
Nov 7 2023, 6:10 PM
Unknown Object (File)
Nov 7 2023, 6:18 AM
Unknown Object (File)
Oct 6 2023, 5:05 PM
Unknown Object (File)
Oct 6 2023, 5:16 AM
Unknown Object (File)
Oct 5 2023, 8:46 AM
Unknown Object (File)
Sep 26 2023, 12:19 PM
Unknown Object (File)
Sep 17 2023, 1:05 AM
Subscribers

Details

Summary

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.

Both ATA and NVME have an identify command. They are completely
different, but to the user they are the same. Leverage nvmecontrol's
print_controller code to provide that functionality to camcontrol
identify. Query the path to see what kind of protocol it supports, and
send the most appropriate command down. Refactor nvme_print_dev a
little to make it easy to get the nvme cdata.

Sponsored by: Netflix

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

the "new" nvme_print_controller() function appears to be missing from your diff. Missing a file?

This revision is now accepted and ready to land.May 9 2018, 8:26 PM
This revision was automatically updated to reflect the committed changes.