dentry

dentry

 英

  • 网络目录数据结构;目录项对象;目录入口

例句

The hierarchical nature of a file system is managed by another object in VFS called a dentry object.

文件系统层次结构VFS另一个称为dentry对象管理

Multiple file objects may refer to the same dentry (as in the case of two users sharing the same file).

可能多个文件对象引用一个dentry两个用户共享同一文件)。

The root directory entry (dentry) object is cached here also, as is the block device on which this file system resides.

目录条目dentry对象缓存这里因为文件系统所在设备

A file system will have one root dentry (referenced in the superblock), this being the only dentry without a parent.

文件系统dentry引用),唯一没有对象dentry

When a file is opened, the dentry cache is populated with entries representing the directory levels representing the path.

打开一个文件dentry缓存表示目录级别目录级别表示路径条目填充

Only file system inodes are stored permanently, where dentry objects are used to improve performance.

永久储存文件系统inode,dentry对象目的改善性能

This section explores the superblock, the index node (or inode), the directory entry (or dentry), and finally, the file object.

这个小节探索superblock)、索引节点inode)、目录条目dentry文件对象

The two major objects that are dynamically managed in the VFS include the dentry and inode objects.

VFS动态管理两个主要对象dentryinode对象

The file object refers to a dentry object, which refers to an inode.

file对象引用dentry对象后者引用inode

The name of the object is then defined, which is kept here in the dentry instead of the inode itself.

接着定义对象名称这里名称保存dentry而不是inode

These objects are the superblock, inode, dentry, and file.

这些对象超级superblock)、inodedentry文件

When a dentry object exists, an inode object will also exist in the inode cache.

如果存在一个dentry对象那么inode缓存存在一个inode对象

From the implementation today, the dentry cache is the master of the inode cache.

现在实现dentry缓存支配inode缓存

Note that the dentry objects exist only in file system memory and are not stored on disk.

注意dentry对象存在文件系统内存不能储存磁盘

Lookups are performed on the dentry cache, which result in an object in the inode cache.

查找dentry缓存执行导致inode缓存出现一个对象

The most-recently used inodes and dentries are kept in the inode and directory cache respectively.

inode目录缓存分别保存最近使用inodedentry

A simplified view of the dentry object is shown in Figure 5.

5展示dentry对象简化图示

Two caches exist for file system objects (inodes and dentries), which I'll define shortly.

两个针对文件系统对象缓存inodedentry)。

Note that for each inode in the inode cache there is a corresponding dentry in the directory cache.

注意对于inode缓存每个inode目录缓存一个对应dentry

In this way, dentries map cleanly into the hierarchical file systems in use today.

通过这种方式dentry简洁映射现在使用文件系统

As shown, a path structure provides reference to both the dentry and vfsmount.

可以看到path结构提供dentryvfsmount引用

The operations for a dentry are then defined (consisting of operations such as hash, compare, delete, release, and so on).

然后dentry定义操作比如hashcomparedeleterelease等等)。

Note also in Figure 7 that a dentry object refers to another dentry object.

注意7一个dentry对象引用另一个dentry对象