]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite482d1b9302045192fad1a7e27254119b056aca5
tree205a61d4324468fa1003854aee1acdc7bc08455a
parent22361bc80a015fa5c492e596225695a468b7ac64
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