summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/nvme.h
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2017-06-07 11:45:34 +0200
committerChristoph Hellwig <hch@lst.de>2017-06-15 14:30:18 +0200
commit3b22ba2682b43296b55f5b4e8c2e91b7248db02b (patch)
tree0efaa7861099e2ff777a1ef0c773157924fb3f15 /drivers/nvme/host/nvme.h
parent90985b84c42a045c0d3ed2753a839b37edb3a8f1 (diff)
nvme: get list of namespace descriptors
If a target identifies itself as NVMe 1.3 compliant, try to get the list of Namespace Identification Descriptors and populate the UUID, NGUID and EUI64 fileds in the NVMe namespace structure with these values. Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r--drivers/nvme/host/nvme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index ce32f4816f9c..f88c6ce5e742 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -196,6 +196,7 @@ struct nvme_ns {
u8 eui[8];
u8 nguid[16];
+ uuid_t uuid;
unsigned ns_id;
int lba_shift;