Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fsopen.c Create Date:2022-07-28 20:13:27
Last Modify:2022-05-24 07:35:12 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Pick a superblock into a context for reconfiguration.

Proto:SYSCALL_DEFINE3(fspick, int, dfd, const char __user *, path, unsigned int, flags)

Type:

Parameter:Nothing

165  If Not ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return -EPERM
168  If (flags & ~( spick() flags. | FSPICK_SYMLINK_NOFOLLOW | FSPICK_NO_AUTOMOUNT | FSPICK_EMPTY_PATH)) != 0 Then Return -EINVAL
174  lookup_flags = llow links at the end | rce terminal automount
175  If flags & FSPICK_SYMLINK_NOFOLLOW Then lookup_flags &= ~llow links at the end
177  If flags & FSPICK_NO_AUTOMOUNT Then lookup_flags &= ~rce terminal automount
179  If flags & FSPICK_EMPTY_PATH Then lookup_flags |= accept empty path [user_... only]
181  ret = user_path_at(dfd, path, lookup_flags, & target)
182  If ret < 0 Then Go to err
185  ret = -EINVAL
186  If mnt_root != dentry Then Go to err_path
189  fc = fs_context_for_reconfigure(dentry, 0, 0)
190  If IS_ERR(fc) Then
191  ret = PTR_ERR(fc)
192  Go to err_path
195  phase = FS_CONTEXT_RECONF_PARAMS
197  ret = fscontext_alloc_log(fc)
198  If ret < 0 Then Go to err_fc
201  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
202  Return Attach a filesystem context to a file and an fd.
204  err_fc :
205  put_fs_context - Dispose of a superblock configuration context.*@fc: The context to dispose of.
206  err_path :
207  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
208  err :
209  Return ret