diff options
| author | Hannes Reinecke <[email protected]> | 2015-12-01 10:16:55 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2015-12-02 16:40:19 -0500 |
| commit | 9983bed3907c379d1d30b7509bb0a871ed655f9d (patch) | |
| tree | b9b437dc4baaf07b3ced70ea0eaceee855022795 /tools/perf/scripts/python/syscall-counts.py | |
| parent | e2d817db32027c25a1702f667fbf0bf6a73fc68c (diff) | |
scsi: Add scsi_vpd_lun_id()
Add a function scsi_vpd_lun_id() to return a unique device
identifcation based on the designation descriptors of
VPD page 0x83.
As devices might implement several descriptors the order
of preference is:
- NAA IEE Registered Extended
- EUI-64 based 16-byte
- EUI-64 based 12-byte
- NAA IEEE Registered
- NAA IEEE Extended
A SCSI name string descriptor is preferred to all of them
if the identification is longer than 16 bytes.
The returned unique device identification will be formatted
as a SCSI Name string to avoid clashes between different
designator types.
[mkp: Fixed up kernel doc comment from Johannes]
Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Ewan Milne <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions