This article was reprinted from: 7566575
1.vfsmount, the relationship between the dentry of the installation point and the dentry of the equipment
(1) One installation point can install multiple devices
(2) One device can be installed on multiple mounting points
The relationship between 2.vfsmount and Vfsmount
The relationship between the 3.vfsmount and the dentry of the mounting point
The picture is too difficult to draw, only write the relationship, see the Notebook
(1) Vfsmount->mnt_mountpoint pointing to the mounting point dentry
(2) The dentry->d_vfsmount of the mounting point points to the queue header of multiple installation structures of the same mounting point
(3) The queue header in the Vfsmount->mnt_clash point (2)
The relationship between 4.vfsmount and the dentry of equipment
(1) Vfsmount->root points to the root directory of the installed device Dentry
(2) Vfsmount->mnt_sb the Super_block of the super block pointing to the installed device
(3) Super_block->s_mounts point to the queue header of the vfsmount that installs the same device
5. The relationship between installation point dentry and device Dentry
(1) There is no direct relationship between them, connected via Vfsmount
(2) Vfsmount->mnt_mountpoint pointing to the mounting point dentry
(3) Vfsmount->mount_root pointing to the dentry of the installed equipment
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. 7566575
Linux2.4 the relationship between Vfsmount, installation point dentry, dentry of the device in the file system "turn"