[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Difference between dentry and directory?



I'm reading the VFS implementation. The VFS has four primary object types: superblock, inode, dentry, file. A book says that " a dentry represents a component in path, which might include a regular file. In other words, a dentry is not the same as a directory, but a directory is the same as a file.". I so confused about the difference dentry and directory.  Can anyone explain more about it?

Thanks!

Fei