Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vfs_parse_fs_param - Add a single parameter to a superblock config*@fc: The filesystem context to modify*@param: The parameter* A single mount option in string form is applied to the filesystem context* being set up

Proto:int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
struct fs_parameter *param
130  If Not Parameter name Then Return valf - Store supplementary invalid argument error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility and return -EINVAL.(fc, "Unnamed parameter\n")
133  ret = Check for a common mount option that manipulates s_flags.
134  If ret != -Parameter not supported Then Return ret
137  ret = security_fs_context_parse_param(fc, param)
138  If ret != -Parameter not supported Then Return ret
144  If parse_param Then
145  ret = parse_param(fc, param)
146  If ret != -Parameter not supported Then Return ret
153  If strcmp(Parameter name , "source") == 0 Then
154  If The type of value here != fs_value_is_string Then Return valf - Store supplementary invalid argument error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility and return -EINVAL.(fc, "VFS: Non-string source")
156  If source Then Return valf - Store supplementary invalid argument error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility and return -EINVAL.(fc, "VFS: Multiple sources")
158  source = string
159  string = NULL
160  Return 0
163  Return valf - Store supplementary invalid argument error message*@fc: The context in which to log the error message*@fmt: The format string* Store the supplementary error message for the process if the process has* enabled the facility and return -EINVAL.(fc, "%s: Unknown parameter '%s'", name, Parameter name )
Caller
NameDescribe
vfs_parse_fs_stringvfs_parse_fs_string - Convenience function to just parse a string.
vfs_fsconfig_lockedCheck the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning.