diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-02-04 05:53:00 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-02-04 05:53:00 +0000 |
commit | ffce99f502910435791b3ceb4700fd31589b99e4 (patch) | |
tree | 3cc72764521f3ddd87336fa04b53444d95665bd4 /sbin/nvmecontrol/nvmecontrol.h | |
parent | ccac2ba7ece799655e38cc10a9e39b37a6dcaa88 (diff) | |
download | src-ffce99f502910435791b3ceb4700fd31589b99e4.tar.gz src-ffce99f502910435791b3ceb4700fd31589b99e4.zip |
Implement 5 wdc-specific nvme control options for their HGST drives:
wdc cap-diag Capture diagnostic data from drive
wdc drive-log Capture drive history data from drive
wdc get-crash-dump Retrieve firmware crash dump from drive
Notes
Notes:
svn path=/head/; revision=313191
Diffstat (limited to 'sbin/nvmecontrol/nvmecontrol.h')
-rw-r--r-- | sbin/nvmecontrol/nvmecontrol.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/nvmecontrol/nvmecontrol.h b/sbin/nvmecontrol/nvmecontrol.h index 745728718b36..3c03ed99160f 100644 --- a/sbin/nvmecontrol/nvmecontrol.h +++ b/sbin/nvmecontrol/nvmecontrol.h @@ -66,6 +66,9 @@ struct nvme_function { #define POWER_USAGE \ " nvmecontrol power [-l] [-p new-state [-w workload-hint]] <controller id>\n" +#define WDC_USAGE \ +" nvmecontrol wdc (cap-diag|drive-log|get-crash-dump|purge|purge-montior)\n" + void devlist(int argc, char *argv[]); void identify(int argc, char *argv[]); void perftest(int argc, char *argv[]); @@ -73,6 +76,7 @@ void reset(int argc, char *argv[]); void logpage(int argc, char *argv[]); void firmware(int argc, char *argv[]); void power(int argc, char *argv[]); +void wdc(int argc, char *argv[]); int open_dev(const char *str, int *fd, int show_error, int exit_on_error); void parse_ns_str(const char *ns_str, char *ctrlr_str, int *nsid); |