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.
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.
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