Commit 230bc9d
nvme: avoid printing iopolicy in list-subsys output
Since commit d0b4c6c (“nvme: extend show-topology command to add
support for multipath”), the subsystem header printed by both show-
topology and list-subsys includes the iopolicy field regardless of
whether the verbose flag is specified.
For show-topology, this behavior is intentional and useful. The command
now prints additional columns such as Nodes or queue-depth depending on
the configured I/O policy, and displaying the iopolicy value makes it
easier to correlate the output with the active policy configured for
the subsystem.
However, the same iopolicy field is also printed in the list-subsys
output, where it is not always relevant. This happens because both
commands share the common helper stdout_subsys_config() to print the
subsystem header.
This change fixes the inconsistency by always printing the iopolicy
field for show-topology, while suppressing it for list-subsys unless
the command is invoked with the verbose flag.
Fixes: d0b4c6c ("nvme: extend show-topology command to add support for multipath")
Signed-off-by: Nilay Shroff <[email protected]>
Reviewed-by: Martin George <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Daniel Wagner <[email protected]>1 parent 29eb149 commit 230bc9d
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
| 1138 | + | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | | - | |
1147 | | - | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
1148 | 1149 | | |
1149 | 1150 | | |
1150 | 1151 | | |
| |||
1179 | 1180 | | |
1180 | 1181 | | |
1181 | 1182 | | |
1182 | | - | |
| 1183 | + | |
| 1184 | + | |
1183 | 1185 | | |
1184 | 1186 | | |
1185 | 1187 | | |
| |||
6081 | 6083 | | |
6082 | 6084 | | |
6083 | 6085 | | |
6084 | | - | |
| 6086 | + | |
6085 | 6087 | | |
6086 | 6088 | | |
6087 | 6089 | | |
| |||
6114 | 6116 | | |
6115 | 6117 | | |
6116 | 6118 | | |
6117 | | - | |
| 6119 | + | |
6118 | 6120 | | |
6119 | 6121 | | |
6120 | 6122 | | |
| |||
0 commit comments