请问:根目录的目录名和inode的对应关系谁来保存的呢?
目录存储的是filename和inode的对应关系表,由于每个目录存储其父目录、本身、和子目录的的信息,这种方法一直上溯到根目录,因此能构成目录树结构,那请问根目录的目录名和inode入口地址的对应关系由谁来保存的呢?谢谢! 是啊,我也有同样的问题啊 这个问题怎么没人回答啊? 内核放在内存中?貌似 INODE信息是保存在磁盘分片头部的,newfs命令就是对分片创建inode表。楼主可以仔细看看newfs的输出。 每一个分区都包含一个磁道组信息。根分区也不例外,根分区的CGB里面也包含了根分区的inodes数据,其中包含了根的inode编号。
Cylinder Group Blocks
The cylinder group block is a table in each cylinder group that describes
the cylinder group, including:
l The number of inodes
l The number of data blocks in the cylinder group
l The number of directories
l Free blocks, free inodes, and free fragments in the cylinder group
l The free block map
l The used inode map
Figure 4-4 shows a series of cylinder groups in a ufs file system
这个信息放在磁盘的backup super block的后面,从第33个扇区开始,占用多少个扇区就不知道了。
页:
[1]