nvme: expose cntlid in sysfs
authorMing Lin <ming.l@ssi.samsung.com>
Fri, 26 Feb 2016 21:24:19 +0000 (13:24 -0800)
committerJens Axboe <axboe@fb.com>
Mon, 29 Feb 2016 19:31:27 +0000 (12:31 -0700)
commit931e1c2204c6d00c11c5c1e2e1c20b5ca41f292d
tree125642bcc0365e00100cfe62c8bed65f32920e25
parent1cb3cce5eb9de335330c8a147e47e3359a51a8b5
nvme: expose cntlid in sysfs

For NVMe over Fabrics, the cntlid will be used by systemd/udev to
create link to the device, for example,

/dev/disk/by-path/<fabrics-info>-<cntlid>-<namespace> -> /dev/nvme0n1

Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h