Skip to content

Improve readbility of NVME "wwid" attribute

Keith Busch linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Improve readbility of NVME "wwid" attribute
Quoted 6 lines · Martin Wilck

With the current implementation, the default "fallback" WWID generation code (if no nguid, euid etc. are defined) for Linux NVME host and target results in the following WWID format:

nvme.0000-3163653363666438366239656630386200-4c696e75780000000000000000000000000000000000000000000000000000000000000000000000-00000002

Quoted 8 lines

This is not only hard to read, it poses real problems for multipath (dm WWIDs are limited to 128 characters), and it's not fully standards compliant.

With this patch series, the WWID on a Linux host connected to a Linux target looks like this:

nvme.0000-d319fc8b2883bfec-4c696e7578-00000001

Just curious for non-hex strings, is there a problem with any utilities if we use the ASCII for both serial and model? It'd be half as long.

For example, my device's wwid attribute looks like this today:

nvme.8086-46554d42353235363030304a32383041-494e54454c2053534450454431443134304741-00000001

But would this cause a problem for anything?

nvme.8086-FUMB5256000J280A-INTEL_SSDPED1D140GA-00000001