English 中文(简体)
输入和 i- 节点数数
原标题:number of dentry and i-node

我在考试上问了下列问题:

在 ext3 文件系统中, 标记的数量高于 i- nodes 的数量。

我不得不用真或假的回答来解释

我的回答是:

这是虚假的, 因为标记是目录之间的链接, 而基本上一切都是一个 i- 节点( 甚至一个目录), 所以 # i- nodes & gt; # 标记 。

然而,我还没有将ext3文件系统加起来。 是否我漏掉了什么,或者我的答案是正确的?

问题回答

由于下列原因,我们很可能有更多的凹痕:

  1. All hardlinks have unique dentries, but point to the same inode.
  2. Lookups returning ENOENT (file or directory does not exist) creates a dentry and marks its inode pointer as NULL(which is technically called a negative dentry). This helps is quickening up negative lookups, ie lookup on non-existent path.

但是,你可以有硬链接。所以你可以合理地有很多 凹痕指向同一个线条。

缩略语数量比干净未挂载的文件系统中的线条数量高ways

考虑 : 每一个信条( 不包括通过打开文件控件保存的未连接文件 - 这些文件在干净的卸载中清除, 或在不干净的卸载后恢复过程中清除) 至少有一个与此相关。 每个目录信条至少有两个链接 - 母目录( 或它自己的 < code>. , 根的链接) 和 < code>. 的链接。 此外, 其它目录对每个子目录 < code> 都有附加的通过。 dentry 。

因此,在绝对最低水平上,比阴极多出一丁二分之一(对于只有根目录的金融服务而言)。额外的目录和硬链接使这一点进一步膨胀。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...