We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
通过 ls -ld /sys/block/nvme* 可以查看 nvme 的 PCI 路径,一般会有以下2种结果,
ls -ld /sys/block/nvme*
# pci0000 和 nvme 之间只有一层,这种适用于所有 DT 的型号. root@test:~# ls -ld /sys/block/nvme* lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme0n1 -> ../devices/pci0000:00/0000:00:03.0/nvme/nvme0/nvme0n1 lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme1n1 -> ../devices/pci0000:00/0000:00:04.0/nvme/nvme1/nvme1n1 # pci0000 和 nvme 之间有多个层,这种适用于 DS918+ RS1619xs+ DS419+ DS1019+ DS719+ DS1621xs+ 型号. root@test:~# ls -ld /sys/block/nvme* lrwxrwxrwx 1 root root 0 May 14 20:37 /sys/block/nvme0n1 -> ../devices/pci0000:00/0000:00:16.0/0000:0b:00.0/nvme/nvme0/nvme0n1 lrwxrwxrwx 1 root root 0 May 14 20:37 /sys/block/nvme1n1 -> ../devices/pci0000:00/0000:00:17.0/0000:13:00.0/nvme/nvme1/nvme1n1 # 如果 不是 pci0000,则所有型号均不可见, root@test:~# ls -ld /sys/block/nvme* lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme0n1 -> ../devices/pci0001:00/0000:00:03.0/nvme/nvme0/nvme0n1 lrwxrwxrwx 1 root root 0 May 14 07:14 /sys/block/nvme1n1 -> ../devices/pci0001:00/0000:00:04.0/nvme/nvme1/nvme1n1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
通过
ls -ld /sys/block/nvme*
可以查看 nvme 的 PCI 路径,一般会有以下2种结果,The text was updated successfully, but these errors were encountered: