Public bug reported:

[Impact]

Without the model and serial strings for each nvme drive exported via
sysfs, udev cannot create the /dev/disk/by-id/ symlinks, since it can't
access the model/serial info.  Without these symlinks, it's difficult to
uniquely identify a specific nvme drive.

[Test Case]

The udev rules to create the nvme symlinks need updating, per bug
1642903 and bug 1647485.  With the udev package updated with
fixes/workarounds from those bugs, boot a kernel without this patch on a
system with nvme drive(s), and check the /dev/disk/by-id/ directory; no
symlinks to the nvme drives should be present.  With this kernel patch,
check the directory, and symlinks to all nvme drives and their
partitions should be present, in the form of /dev/disk/by-id/nvme-
MODEL_SERIAL for the drive and /dev/disk/by-id/nvme-MODEL_SERIAL-partN
for each partition.

[Regression Potential]

Creating/managing sysfs files can result in problems ranging from memory
leaks to a kernel oops, if not managed correctly.

[Other Info]

This functionality is present in upstream kernels, but the change diff
between this kernel version and where this functionality appears
upstream is massive - the driver changes from manually managing its
userspace access over to using the standard device infrastructure, as
well as numerous other bugfixes and feature changes.  So instead of
attempting to backport all those changes, this patch retains only a
small part of the upstream patch and adds direct sysfs file creation
using device_create_file(), which the upstream code never did.  This is
by far the simplest way to update this very old kernel with the
functionality.

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Dan Streetman (ddstreet)
         Status: Incomplete


** Tags: trusty

** Changed in: linux (Ubuntu)
     Assignee: (unassigned) => Dan Streetman (ddstreet)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1649635

Title:
  export nvme drive model/serial strings via sysfs (trusty)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1649635/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to