nvme: add hostid token to fabric options
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 20 Jun 2017 12:23:01 +0000 (14:23 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jun 2017 14:14:13 +0000 (08:14 -0600)
commit6bfe04255d5ed5643ee4c2d9b09b337398f8cb6a
tree205a61d4324468fa1003854aee1acdc7bc08455a
parent3f7f25a910ed8988b2a87c1ca2bfee6b4fb83ac7
nvme: add hostid token to fabric options

Currently we have no way to define a stable host-id but always use the one
which is randomly generated when we add the host or use the default host.

Provide a "hostid=%s" for user-space to pass in a persistent host-id which
overrides the randomly generated one.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fabrics.c
drivers/nvme/host/fabrics.h