Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rsively change the type of the mountpoint.

Proto:static int do_change_type(struct path *path, int ms_flags)

Type:int

Parameter:

TypeParameterName
struct path *path
intms_flags
2205  mnt = real_mount(mnt)
2206  recurse = ms_flags & MS_REC
2208  err = 0
2210  If dentry != mnt_root Then Return -EINVAL
2213  type = Sanity check the flags to change_mnt_propagation.
2214  If Not type Then Return -EINVAL
2217  namespace_lock()
2218  If type == change to shared Then
2219  err = invent_group_ids(mnt, recurse)
2220  If err Then Go to out_unlock
2224  lock_mount_hash()
2225  When m cycle vfsmount lock must be held for write
2227  unlock_mount_hash()
2229  out_unlock :
2230  namespace_unlock()
2231  Return err
Caller
NameDescribe
do_mountFlags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)