diff options
| author | Johannes Thumshirn <jthumshirn@suse.de> | 2017-06-07 12:45:35 +0300 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2017-06-15 15:30:20 +0300 |
| commit | d934f9848a77be4afe0ca336ea419dd066c934f3 (patch) | |
| tree | 9b762c4f0fcb087ff782cbea9770c6c5d338f301 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 3b22ba2682b43296b55f5b4e8c2e91b7248db02b (diff) | |
| download | linux-d934f9848a77be4afe0ca336ea419dd066c934f3.tar.xz | |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
