Commit cb7974b
nvme-cli: extend show-topology tabular output for non-multipath subsys
The current tabular output of show-topology command does not display a
controller if it has no associated namespaces. However, it is valid
for a controller within a subsystem to have no namespaces attached.
In such cases, it is still useful to display controller information
such as the controller name, transport type, address, and state, while
leaving the namespace-related fields (e.g., namespace and nsid) as "--".
Update the tabular output of show-topology command to include
controllers and their associated fields regardless of whether any
namespaces are present. While we are at it, also dispaly the error
message using nvme_show_error() instead of using printf().
This change applies to non-multipath subsystems. A subsequent commit
will extend this behavior to multipath subsystems.
Signed-off-by: Nilay Shroff <[email protected]>
[wagi: reformatted argument list and dropped redundant comments]
Signed-off-by: Daniel Wagner <[email protected]>1 parent 293cadf commit cb7974b
1 file changed
Lines changed: 54 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6148 | 6148 | | |
6149 | 6149 | | |
6150 | 6150 | | |
| 6151 | + | |
| 6152 | + | |
| 6153 | + | |
| 6154 | + | |
| 6155 | + | |
| 6156 | + | |
| 6157 | + | |
| 6158 | + | |
| 6159 | + | |
| 6160 | + | |
| 6161 | + | |
| 6162 | + | |
| 6163 | + | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
| 6167 | + | |
| 6168 | + | |
| 6169 | + | |
| 6170 | + | |
| 6171 | + | |
| 6172 | + | |
6151 | 6173 | | |
6152 | 6174 | | |
6153 | 6175 | | |
6154 | 6176 | | |
6155 | | - | |
| 6177 | + | |
6156 | 6178 | | |
6157 | 6179 | | |
6158 | 6180 | | |
| |||
6165 | 6187 | | |
6166 | 6188 | | |
6167 | 6189 | | |
6168 | | - | |
| 6190 | + | |
6169 | 6191 | | |
6170 | 6192 | | |
6171 | 6193 | | |
6172 | 6194 | | |
6173 | | - | |
| 6195 | + | |
6174 | 6196 | | |
6175 | 6197 | | |
6176 | 6198 | | |
6177 | 6199 | | |
6178 | | - | |
6179 | | - | |
6180 | | - | |
6181 | | - | |
6182 | | - | |
6183 | | - | |
| 6200 | + | |
| 6201 | + | |
| 6202 | + | |
| 6203 | + | |
| 6204 | + | |
| 6205 | + | |
| 6206 | + | |
| 6207 | + | |
| 6208 | + | |
| 6209 | + | |
| 6210 | + | |
| 6211 | + | |
| 6212 | + | |
| 6213 | + | |
6184 | 6214 | | |
6185 | | - | |
| 6215 | + | |
| 6216 | + | |
| 6217 | + | |
6186 | 6218 | | |
6187 | | - | |
6188 | | - | |
6189 | | - | |
6190 | | - | |
6191 | | - | |
6192 | | - | |
6193 | | - | |
6194 | | - | |
6195 | | - | |
6196 | | - | |
6197 | | - | |
6198 | | - | |
6199 | | - | |
6200 | | - | |
6201 | | - | |
6202 | | - | |
6203 | | - | |
6204 | | - | |
| 6219 | + | |
| 6220 | + | |
6205 | 6221 | | |
6206 | | - | |
| 6222 | + | |
| 6223 | + | |
| 6224 | + | |
| 6225 | + | |
| 6226 | + | |
| 6227 | + | |
| 6228 | + | |
| 6229 | + | |
| 6230 | + | |
| 6231 | + | |
6207 | 6232 | | |
6208 | 6233 | | |
6209 | 6234 | | |
| |||
0 commit comments