Skip to content

Commit 0c9ad96

Browse files
jeff-lien-sndkigaw
authored andcommitted
wdc: Add support for cu_smart-log command on SN861
This change will add support parsing the CA log page via the cu-smart-log command on SN861 drives Add documentation for wdc cu-smart-log command Signed-off-by: jeff-lien-wdc <[email protected]>
1 parent 19edb52 commit 0c9ad96

File tree

5 files changed

+370
-259
lines changed

5 files changed

+370
-259
lines changed

Documentation/cmd-plugins.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ linknvme:nvme-wdc-clear-pcie-correctable-errors[1]::
178178
linknvme:nvme-wdc-cloud-SSD-plugin-version[1]::
179179
Display WDC plugin Cloud SSD Plugin Version
180180

181+
linknvme:nvme-wdc-cu-smart-log[1]::
182+
Display WDC plugin Customer Unique Log Page
183+
181184
linknvme:nvme-wdc-drive-essentials[1]::
182185
Retrieve WDC device's drive essentials bin files
183186

Documentation/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ adoc_sources = [
206206
'nvme-wdc-clear-pcie-correctable-errors',
207207
'nvme-wdc-cloud-SSD-plugin-version',
208208
'nvme-wdc-cloud-boot-SSD-version',
209+
'nvme-wdc-cu-smart-log',
209210
'nvme-wdc-drive-essentials',
210211
'nvme-wdc-drive-log',
211212
'nvme-wdc-drive-resize',
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
nvme-wdc-cu-smart-log(1)
2+
========================
3+
4+
NAME
5+
----
6+
nvme-wdc-cu-smart-log - Send NVMe WDC cu-smart-log Vendor Unique Command, return result
7+
8+
SYNOPSIS
9+
--------
10+
[verse]
11+
'nvme wdc cu-smart-log' <device> [--output-format=<normal|json> -o <normal|json>]
12+
[--uuid-index=<uuid-index> | -u <uuid-index>]
13+
14+
DESCRIPTION
15+
-----------
16+
For the NVMe device given, retrieves and formats the Vendor Unique WDC 0xCA log page.
17+
18+
The <device> parameter is mandatory and may be either the NVMe character
19+
device (ex: /dev/nvme0) or block device (ex: /dev/nvme0n1).
20+
21+
This will only work on WDC devices supporting this feature.
22+
Results for any other device are undefined.
23+
24+
On success it returns 0, error code otherwise.
25+
26+
OPTIONS
27+
-------
28+
-o <fmt>::
29+
--output-format=<fmt>::
30+
Set the reporting format to 'normal', or
31+
'json'. Only one output format can be used at a time.
32+
Default is normal.
33+
34+
-u <uuid-index>::
35+
--uuid-index=<uuid-index>::
36+
Sets the uuid-index of the log page to be retrieved. Defaults to
37+
0 if not given.
38+
39+
EXAMPLES
40+
--------
41+
* Has the program issue WDC cu-smart-log plugin Command :
42+
+
43+
------------
44+
# nvme wdc cu-smart-log /dev/nvme0
45+
------------
46+
47+
NVME
48+
----
49+
Part of the nvme-user suite.

0 commit comments

Comments
 (0)