]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: Refactor to create a get_nvme_ctrl_info routine
authorJames Smart <jsmart2021@gmail.com>
Thu, 1 Aug 2019 23:13:42 +0000 (16:13 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 2 Aug 2019 15:42:56 +0000 (09:42 -0600)
commit2317e38fb045198a9bb2d9dc3d8f6ef85ce0d926
tree182cda6bf81bd192001bf403f4af2b7b11ee2050
parent986a9357e27dbbde4b5dbdbe8bb490130465d198
nvme-cli: Refactor to create a get_nvme_ctrl_info routine

In preparation for searching controllers to match with connect args:

Refactor the get_nvme_subsystem_info() routine to take the portion
that creates a ctrl_list_item and sets its values and put it in a
separate get_nvme_ctrl_info() routine.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
nvme.c