Bug 241541 - nvd partitions not shown/accessible through /dev
Summary: nvd partitions not shown/accessible through /dev
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2019-10-28 14:49 UTC by acct
Modified: 2019-11-07 14:01 UTC (History)
2 users (show)

See Also:


Attachments
combined output of gpart list and ls slash-dev (2.70 KB, text/plain)
2019-10-28 14:49 UTC, acct
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description acct 2019-10-28 14:49:38 UTC
Created attachment 208655 [details]
combined output of gpart list and ls slash-dev

When 12.1-RC2 is installed on a NVMe drive, all partitions on that drive (msdosfs, bsd-swap, linux-swap, zfs) are not accessible or listed in /dev.  See attached for output of gpart list and /dev.

I verified that this does not affect SATA devices, when performing the same install on a SATA SSD.
Comment 1 Conrad Meyer freebsd_committer 2019-10-28 18:30:15 UTC
They're hiding under /dev/diskid/ (see the diskid/foo names in 'gpart list').

I can't explain why this doesn't also happen for your SATA install.
Comment 2 acct 2019-10-28 23:40:22 UTC
(In reply to Conrad Meyer from comment #1)

I checked the output of an install on 12.x, using the same process (gpart create) and all partitions were listed in dev with the format:
- "nvd0p1" 
verses 
- "Name: diskid/DISK-S3TPNE0K200393p1"

What causes this change in behavior between 12.0 and 12.1? Does it need to be documented as a change? Is there a way to improve the format, or force it to be listed in the previous format, or using the GPT partition label.

Just trying to be helpful to the new release.
Comment 3 Warner Losh freebsd_committer 2019-11-07 14:01:18 UTC
If they are mounted, then they won't appear.
If you installed two different ways, then that's the difference.
What's mount and /etc/fstab look like between the two?

nothing in geom changed, and although a lot changed in nvme, none of affected how it created the disks...

I think this is nothing more than the misfeature of geom hiding device nodes.