Function report | 
Source Code:fs\fsopen.c | 
Create Date:2022-07-28 20:13:28 | 
| Last Modify:2022-05-24 07:35:12 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Check the state and apply the configuration. Note that this function is* allowed to 'steal' the value by setting param->xxx to NULL before returning.
Proto:static int vfs_fsconfig_locked(struct fs_context *fc, int cmd, struct fs_parameter *param)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct fs_context * | fc | |
| int | cmd | |
| struct fs_parameter * | param | 
| 222 | ret = finish_clean_context(fc) | 
| 226 | Case cmd == FSCONFIG_CMD_CREATE | 
| 227 | If phase != FS_CONTEXT_CREATE_PARAMS Then Return -EBUSY | 
| 229 | If Not mount_capable(fc) Then Return -EPERM | 
| 231 | phase = FS_CONTEXT_CREATING | 
| 233 | If ret Then Break | 
| 236 | ret = security_sb_kern_mount(sb) | 
| 238 | fc_drop_locked(fc) | 
| 239 | Break | 
| 243 | Return 0 | 
| 244 | Case cmd == FSCONFIG_CMD_RECONFIGURE | 
| 245 | If phase != FS_CONTEXT_RECONF_PARAMS Then Return -EBUSY | 
| 249 | If Not ns_capable(s_user_ns, Allow setting zone reclaim policy ) Then | 
| 253 | lock for writing | 
| 254 | ret = gure_super - asks filesystem to change superblock parameters*@fc: The superblock and configuration* Alters the configuration parameters of a live superblock. | 
| 256 | If ret Then Break | 
| 259 | Return 0 | 
| 260 | Default | 
| 261 | If phase != FS_CONTEXT_CREATE_PARAMS && phase != FS_CONTEXT_RECONF_PARAMS Then Return -EBUSY | 
| 267 | phase = FS_CONTEXT_FAILED | 
| 268 | Return ret | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |