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:Check for a common mount option that manipulates s_flags.

Proto:static int vfs_parse_sb_flag(struct fs_context *fc, const char *key)

Type:int

Parameter:

TypeParameterName
struct fs_context *fc
const char *key
89  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(forbidden_sb_flag) cycle If strcmp(key, forbidden_sb_flag[i]) == 0 Then
91  Return -EINVAL
93  token = lookup_constant(common_set_sb_flag, key, 0)
94  If token Then
95  sb_flags |= token
96  sb_flags_mask |= token
97  Return 0
100  token = lookup_constant(common_clear_sb_flag, key, 0)
101  If token Then
102  sb_flags &= ~token
103  sb_flags_mask |= token
104  Return 0
107  Return -Parameter not supported
Caller
NameDescribe
vfs_parse_fs_paramvfs_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