Re: complete boot failure in 4.5-rc1 caused by nvme: make SG_IO support optional

From: Christoph Hellwig
Date: Mon Feb 08 2016 - 02:24:32 EST


On Sun, Feb 07, 2016 at 03:07:21PM -0800, James Bottomley wrote:
> > I run root-on-nvme on my laptop, and I haven't observed any problems.
>
> Me too apparently. It looks like this problem may be SUSE specific
> unless another distro has enabled this. I can see why they would: you
> do need persistent names for devices, even NVMe ones.

I don't have root on nvme, just my xfstests device, but I still didn't
see the problem, neither did my various nvme development setups.

> I opened a bug against SUSE to tell them to turn it on:
>
> https://bugzilla.opensuse.org/show_bug.cgi?id=965497
>
> The second problem is that there's currently no way to transition to
> using the serial attribute the way the udev 60-persistent-storage.rules
> are written, so if distros have some by-id hack, it will have to be
> maintained for a while. I annotated the already closed bug on this in
> systemd with the rules that work for me.

We now expose the NVMe serial and NGUI, out of which the evpd page is
mangled depending on the NVMe spec version that the device supports as
sysfs attributes, distros can do the same mangling if they want to
support their old ids.