/ dev / block目录中有一堆符号链接。
而且我发现他们在/ dev中指向块设备文件。
我想知道他们名字的含义(8:0,8:1,11:0,11:1,...)
如果执行正常操作ls -l
,则会看到这些是到块设备的链接。
% ls -l /dev/block/
total 0
lrwxrwxrwx 1 root root 6 May 5 09:03 253:0 -> ../vda
lrwxrwxrwx 1 root root 7 May 5 09:03 253:1 -> ../vda1
lrwxrwxrwx 1 root root 6 May 5 09:03 253:16 -> ../vdb
lrwxrwxrwx 1 root root 7 May 5 09:03 253:2 -> ../vda2
lrwxrwxrwx 1 root root 7 May 5 09:03 253:3 -> ../vda3
lrwxrwxrwx 1 root root 6 May 5 09:03 253:32 -> ../vdc
lrwxrwxrwx 1 root root 7 May 5 09:03 253:33 -> ../vdc1
如果相反,ls -lL
那么您会看到目标详细信息
% ls -lL /dev/block/
total 0
brw-rw---- 1 root disk 253, 0 May 5 09:03 253:0
brw-rw---- 1 root disk 253, 1 May 5 09:03 253:1
brw-rw---- 1 root disk 253, 16 May 5 09:03 253:16
brw-rw---- 1 root disk 253, 2 May 5 09:03 253:2
brw-rw---- 1 root disk 253, 3 May 5 09:03 253:3
brw-rw---- 1 root disk 253, 32 May 5 09:03 253:32
brw-rw---- 1 root disk 253, 33 May 5 09:03 253:33
从这里很明显,文件名中的x:y值是主要/次要设备号。
另请参阅设备类型编号是什么意思?
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句