]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-cli: Add routine to compare ctrl_list_item to connect args
authorJames Smart <jsmart2021@gmail.com>
Thu, 1 Aug 2019 23:13:44 +0000 (16:13 -0700)
committerKeith Busch <kbusch@kernel.org>
Fri, 2 Aug 2019 15:43:03 +0000 (09:43 -0600)
commitd302047278b4b465ce3a6b7ba76d20e72d6bf4bc
tree764863078210db564911ad9540e998aebe89772f
parent689f3bd8396aece59017477ca836d31a28d49223
nvme-cli: Add routine to compare ctrl_list_item to connect args

In preparation for searching controllers to match with connect args:

Create a new routine that receives a structure containing connect
arguments and a device name. The routine will build and fill in a
ctrl_list_item for the device and compare its attributes with the
connect arguments. The routine returns true/false on whether they
match.

Routine is defined as a global as a subsequent patch will use it
from the fabrics routines.

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