Skip to content

Commit

Permalink
nvme-print-stdout: Support subsys reachable from several hosts
Browse files Browse the repository at this point in the history
The host might be connected with several different hostnqn, and
this might result that the same subsystem is visible from several
hosts.

The current code assumes a each subsystem shows up only once. So
we need to iterate over all hosts/subsystem tuples and print
them accordingly.

Use hash tables to avoid triple loop iterations. Also using strset sorts
all the names alphabetically which is also nice to have.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Jul 20, 2023
1 parent 58d4b2d commit 2e60278
Showing 1 changed file with 295 additions and 86 deletions.
Loading

0 comments on commit 2e60278

Please sign in to comment.