diff options
author | Keith Busch <keith.busch@intel.com> | 2015-12-22 10:10:45 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-12-22 10:10:45 -0700 |
commit | 2b9b6e86bca7209de02754fc84acf7ab3e78734e (patch) | |
tree | 1cd3492be06e261d610ef2d6eec5435ff03574a8 /drivers/nvme/host/nvme.h | |
parent | a0a3408ee614848c27b0d36c2fe490da3b387b8d (diff) | |
download | talos-op-linux-2b9b6e86bca7209de02754fc84acf7ab3e78734e.tar.gz talos-op-linux-2b9b6e86bca7209de02754fc84acf7ab3e78734e.zip |
NVMe: Export namespace attributes to sysfs
Exposes the NGUID, EUI-64, and NSID to sysfs entries under the disk's
kobject.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index b0417622d27c..d88cf45fbcc1 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -102,6 +102,9 @@ struct nvme_ns { struct gendisk *disk; struct kref kref; + u8 eui[8]; + u8 uuid[16]; + unsigned ns_id; int lba_shift; u16 ms; |