[systemd-devel] [PATCH] 60-persistent-storage.rules: add NVMe disks and partitions

Kay Sievers kay at vrfy.org
Mon Feb 10 14:33:28 PST 2014


On Mon, Feb 10, 2014 at 5:01 PM,  <harald at redhat.com> wrote:

> Although NVMe PCIe SSD are not named sd*, they can be queried with
> scsi_id and handled equally.

> +# NVMe
> +KERNEL=="nvme?n?", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted -d $devnode", ENV{ID_BUS}="scsi"

nvme?n? seems wrong for %d fields, they seem not be be limited to 1 digit.

This is not ID_BUS=scsi, they just "fake" the data for scsi queries,
nothing should pretend any other SCSI properties here.

scsi_id is about to get removed and for real scsi devices be replaced
by tools from sg3utils.

We should find out what to do for nvme before we add any new users of
the scsi_id.

Kay


More information about the systemd-devel mailing list