Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:path_connected - Verify that a path->dentry is below path->mnt.mnt_root*@path: nameidate to verify* Rename can sometimes move a file or directory outside of a bind* mount, path_connected allows those cases to be detected.

Proto:static bool path_connected(const struct path *path)

Type:bool

Parameter:

TypeParameterName
const struct path *path
562  mnt = mnt
563  sb = pointer to superblock
566  If Not (s_iflags & Multiple roots to the dentry tree ) && root of the mounted tree == s_root Then Return true
569  Return is new dentry a subdirectory of old_dentry
Caller
NameDescribe
follow_dotdot_rcu
path_parent_directory