Bug 288161 - sysutils/nvme-cli nvme list returns " Failed to scan topology: No such file or directory"
Summary: sysutils/nvme-cli nvme list returns " Failed to scan topology: No such file o...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Warner Losh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-12 01:56 UTC by Paul von Behren
Modified: 2026-05-21 14:57 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (imp)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul von Behren 2025-07-12 01:56:06 UTC
Other commands than "list" that I've tried return "Inappropriate ioctl for device". nvme list error occurs at this line of code:
open("/sys/class/nvme",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,04220003760) ERR#2 'No such file or directory'

/sys/class/nvme is a Linux path; appears that this should be different for FreeBSD.
Comment 1 Warner Losh freebsd_committer freebsd_triage 2025-07-12 03:51:30 UTC
Yes. Anything that uses the /sys/ filesystem need to have support added to our shim open and readdir routine so that it returns the right things for the rest of the program. This is one area that hasn't been ported over yet.
Comment 2 Dan Langille freebsd_committer freebsd_triage 2025-09-25 17:51:51 UTC
FWIW, still an issue on FreeBSD 14.3:

[17:50 r730-01 dvl ~] % sudo nvme list          
Failed to scan topology: No such file or directory