linux/drivers/nvme/host
Johannes Thumshirn d934f9848a nvme: provide UUID value to userspace
Now that we have a way for getting the UUID from a target, provide it
to userspace as well.

Unfortunately there is already a sysfs attribute called UUID which is
a misnomer as it holds the NGUID value. So instead of creating yet
another wrong name, create a new 'nguid' sysfs attribute for the
NGUID. For the UUID attribute add a check wheter the namespace has a
UUID assigned to it and return this or return the NGUID to maintain
backwards compatibility. This should give userspace a chance to catch
up.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Sagi Grimberg <sagi@rimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2017-06-15 14:30:20 +02:00
..
core.c nvme: provide UUID value to userspace 2017-06-15 14:30:20 +02:00
fabrics.c nvme: move nr_reconnects to nvme_ctrl 2017-06-15 14:29:49 +02:00
fabrics.h nvme: move nr_reconnects to nvme_ctrl 2017-06-15 14:29:49 +02:00
fc.c nvme: move nr_reconnects to nvme_ctrl 2017-06-15 14:29:49 +02:00
Kconfig nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
lightnvm.c nvmet: use NVME_IDENTIFY_DATA_SIZE 2017-06-15 14:30:15 +02:00
Makefile nvme-fabrics: Add host support for FC transport 2016-12-06 10:17:56 +02:00
nvme.h nvme: get list of namespace descriptors 2017-06-15 14:30:18 +02:00
pci.c nvmet: use NVME_IDENTIFY_DATA_SIZE 2017-06-15 14:30:15 +02:00
rdma.c nvme: move nr_reconnects to nvme_ctrl 2017-06-15 14:29:49 +02:00
scsi.c nvme-scsi: remove nvme_trans_security_protocol 2017-04-27 08:39:32 +02:00