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對象