Skip to content

Commit 4a75866

Browse files
committed
doc: add output-format-version option description
Describe as the default value is 2. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 27af156 commit 4a75866

12 files changed

Lines changed: 100 additions & 1 deletion

Documentation/nvme-dir-receive.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ SYNOPSIS
1717
[--human-readable | -H] [--raw-binary | -b]
1818
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
1919
[--timeout=<timeout>]
20+
[--output-format-version=<version>]
2021

2122
DESCRIPTION
2223
-----------
@@ -27,6 +28,10 @@ well as number of requested resource if specific operation needs it.
2728
The <device> parameter is mandatory and may be either the NVMe character
2829
device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).
2930

31+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
32+
for the outputs that are easier to process via scripts. Note this is
33+
experimental and the field names are subject to change.
34+
3035
On success, the returned directive's parameter structure (if applicable) is
3136
returned in one of several ways depending on the option flags; the
3237
structure may parsed by the program and printed in a readable format
@@ -94,6 +99,10 @@ OPTIONS
9499
--timeout=<timeout>::
95100
Override default timeout value. In milliseconds.
96101

102+
--output-format-version=<version>::
103+
Set the field labels in the reporting format to either '1'
104+
(the original) or '2'. The default is 2. Note this is experimental.
105+
97106
EXAMPLES
98107
--------
99108
* Identify directive type supported :

Documentation/nvme-get-property.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ SYNOPSIS
1313
[--human-readable | -H]
1414
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
1515
[--timeout=<timeout>]
16+
[--output-format-version=<version>]
1617

1718
DESCRIPTION
1819
-----------
1920
Reads and shows the defined NVMe controller property for NVMe over Fabric.
2021

22+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
23+
for the outputs that are easier to process via scripts. Note this is
24+
experimental and the field names are subject to change.
25+
2126
OPTIONS
2227
-------
2328
-O <offset>::
@@ -40,6 +45,10 @@ OPTIONS
4045
--timeout=<timeout>::
4146
Override default timeout value. In milliseconds.
4247

48+
--output-format-version=<version>::
49+
Set the field labels in the reporting format to either '1'
50+
(the original) or '2'. The default is 2. Note this is experimental.
51+
4352
EXAMPLES
4453
--------
4554
* The following will run the get-property command with offset 0

Documentation/nvme-get-reg.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ SYNOPSIS
1717
[--pmrmscl] [--pmrmscu]
1818
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
1919
[--timeout=<timeout>]
20+
[--output-format-version=<version>]
2021

2122
DESCRIPTION
2223
-----------
@@ -25,6 +26,10 @@ Read and show the defined NVMe controller register.
2526
The <device> parameter is mandatory and must be the nvme admin character
2627
device (ex: /dev/nvme0).
2728

29+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
30+
for the outputs that are easier to process via scripts. Note this is
31+
experimental and the field names are subject to change.
32+
2833
OPTIONS
2934
-------
3035
-O <offset>::
@@ -131,6 +136,10 @@ OPTIONS
131136
--timeout=<timeout>::
132137
Override default timeout value. In milliseconds.
133138

139+
--output-format-version=<version>::
140+
Set the field labels in the reporting format to either '1'
141+
(the original) or '2'. The default is 2. Note this is experimental.
142+
134143
EXAMPLES
135144
--------
136145
* The following will run the get-reg command with CC=0x14 register offset

Documentation/nvme-id-ns-lba-format.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SYNOPSIS
1212
[--lba-format-index=<lba_format_index> | -i <lba_format_index>]
1313
[--verbose | -v]
1414
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
15+
[--output-format-version=<version>]
1516

1617
DESCRIPTION
1718
-----------
@@ -22,6 +23,10 @@ that is include capability field only and returned structure.
2223
The <device> parameter is mandatory and may be either the NVMe character
2324
device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).
2425

26+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
27+
for the outputs that are easier to process via scripts. Note this is
28+
experimental and the field names are subject to change.
29+
2530
On success, the structure may be returned in one of several ways depending
2631
on the option flags; the structure may be parsed by the program or the
2732
raw buffer may be printed to stdout.
@@ -46,6 +51,10 @@ OPTIONS
4651
Set the reporting format to 'normal', 'json' or 'binary'. Only one
4752
output format can be used at a time.
4853

54+
--output-format-version=<version>::
55+
Set the field labels in the reporting format to either '1'
56+
(the original) or '2'. The default is 2. Note this is experimental.
57+
4958
EXAMPLES
5059
--------
5160
* Has the program interpret the returned buffer and display the known

Documentation/nvme-id-ns.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SYNOPSIS
1212
[--namespace-id=<nsid> | -n <nsid>] [--force]
1313
[--human-readable | -H]
1414
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
15+
[--output-format-version=<version>]
1516

1617
DESCRIPTION
1718
-----------
@@ -25,6 +26,10 @@ mandatory, otherwise it will use the ns-id of the namespace for the block
2526
device you opened. For block devices, the ns-id used can be overridden
2627
with the same option.
2728

29+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
30+
for the outputs that are easier to process via scripts. Note this is
31+
experimental and the field names are subject to change.
32+
2833
On success, the structure may be returned in one of several ways depending
2934
on the option flags; the structure may be parsed by the program or the
3035
raw buffer may be printed to stdout.
@@ -71,6 +76,10 @@ OPTIONS
7176
--verbose::
7277
Increase the information detail in the output.
7378

79+
--output-format-version=<version>::
80+
Set the field labels in the reporting format to either '1'
81+
(the original) or '2'. The default is 2. Note this is experimental.
82+
7483
EXAMPLES
7584
--------
7685
* Has the program interpret the returned buffer and display the known

Documentation/nvme-list-subsys.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'nvme list-subsys' <device> [--output-format=<fmt> | -o <fmt>] [--verbose | -v]
12+
[--output-format-version=<version>]
1213

1314
DESCRIPTION
1415
-----------
@@ -17,6 +18,10 @@ for those subsystems as well as some pertinent information about them.
1718
If a device is given, print out only the values for the controllers
1819
and subsystems leading to the device.
1920

21+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
22+
for the outputs that are easier to process via scripts. Note this is
23+
experimental and the field names are subject to change.
24+
2025
OPTIONS
2126
-------
2227
-o <fmt>::
@@ -28,6 +33,10 @@ OPTIONS
2833
--verbose::
2934
Increase the information detail in the output.
3035

36+
--output-format-version=<version>::
37+
Set the field labels in the reporting format to either '1'
38+
(the original) or '2'. The default is 2. Note this is experimental.
39+
3140
EXAMPLES
3241
--------
3342
[verse]

Documentation/nvme-list.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'nvme list' [--output-format=<fmt> | -o <fmt>] [--verbose | -v]
12+
[--output-format-version=<version>]
1213

1314
DESCRIPTION
1415
-----------
1516
Scan the sysfs tree for NVM Express devices and return the /dev node
1617
for those devices as well as some pertinent information about them.
1718
Namespace usage printed in powers of 1,000 with SI prefixes. (e.g., 1.02 TB)
1819

20+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
21+
for the outputs that are easier to process via scripts. Note this is
22+
experimental and the field names are subject to change.
23+
1924
OPTIONS
2025
-------
2126
-o <fmt>::
@@ -29,6 +34,10 @@ OPTIONS
2934
controllers and namespaces separately and how they're related to each
3035
other.
3136

37+
--output-format-version=<version>::
38+
Set the field labels in the reporting format to either '1'
39+
(the original) or '2'. The default is 2. Note this is experimental.
40+
3241
ENVIRONMENT
3342
-----------
3443
PCI_IDS_PATH - Full path of pci.ids file in case nvme could not find it in common locations.

Documentation/nvme-nvm-id-ctrl.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'nvme nvm-id-ctrl' <device> [--output-format=<fmt> | -o <fmt>] [--verbose | -v]
12+
[--output-format-version=<version>]
1213

1314
DESCRIPTION
1415
-----------
@@ -18,6 +19,10 @@ command and provides the result and returned structure.
1819
The <device> parameter is mandatory and may be either the NVMe character
1920
device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).
2021

22+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
23+
for the outputs that are easier to process via scripts. Note this is
24+
experimental and the field names are subject to change.
25+
2126
On success, the data structure returned by the device will be decoded and
2227
displayed in one of several ways.
2328

@@ -32,6 +37,10 @@ OPTIONS
3237
--verbose::
3338
Increase the information detail in the output.
3439

40+
--output-format-version=<version>::
41+
Set the field labels in the reporting format to either '1'
42+
(the original) or '2'. The default is 2. Note this is experimental.
43+
3544
EXAMPLES
3645
--------
3746
* Has the program interpret the returned buffer and display the known

Documentation/nvme-ocp-smart-add-log.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ OPTIONS
3737

3838
--output-format-version=<version>::
3939
Set the field labels in the reporting format to either '1'
40-
(the original) or '2'. The default is 1. Note this is experimental.
40+
(the original) or '2'. The default is 2. Note this is experimental.
4141

4242
EXAMPLES
4343
--------

Documentation/nvme-show-regs.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ SYNOPSIS
1212
'nvme show-regs' <device> [--human-readable | -H]
1313
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
1414
[--timeout=<timeout>]
15+
[--output-format-version=<version>]
1516

1617
DESCRIPTION
1718
-----------
@@ -27,6 +28,10 @@ memory to get access to the registers. For NVMe over Fabrics, the programs
2728
sends a fabric command to get the properties of the target NVMe controller.
2829
Only the supported properties are displayed.
2930

31+
EXPERIMENTAL. The --output-format-version can be set to 2 to generate field names
32+
for the outputs that are easier to process via scripts. Note this is
33+
experimental and the field names are subject to change.
34+
3035
OPTIONS
3136
-------
3237
-H::
@@ -45,6 +50,10 @@ OPTIONS
4550
--timeout=<timeout>::
4651
Override default timeout value. In milliseconds.
4752

53+
--output-format-version=<version>::
54+
Set the field labels in the reporting format to either '1'
55+
(the original) or '2'. The default is 2. Note this is experimental.
56+
4857
EXAMPLES
4958
--------
5059
* Show the NVMe over PCIe controller registers or the NVMe over Fabric controller

0 commit comments

Comments
 (0)