Lines Matching refs:param
94 int vfs_parse_fs_param_source(struct fs_context *fc, struct fs_parameter *param) in vfs_parse_fs_param_source() argument
96 if (strcmp(param->key, "source") != 0) in vfs_parse_fs_param_source()
99 if (param->type != fs_value_is_string) in vfs_parse_fs_param_source()
105 fc->source = param->string; in vfs_parse_fs_param_source()
106 param->string = NULL; in vfs_parse_fs_param_source()
127 int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param) in vfs_parse_fs_param() argument
131 if (!param->key) in vfs_parse_fs_param()
134 ret = vfs_parse_sb_flag(fc, param->key); in vfs_parse_fs_param()
138 ret = security_fs_context_parse_param(fc, param); in vfs_parse_fs_param()
146 ret = fc->ops->parse_param(fc, param); in vfs_parse_fs_param()
154 ret = vfs_parse_fs_param_source(fc, param); in vfs_parse_fs_param()
159 fc->fs_type->name, param->key); in vfs_parse_fs_param()
175 struct fs_parameter param = { in vfs_parse_fs_string() local
182 param.string = kmemdup_nul(value, v_size, GFP_KERNEL); in vfs_parse_fs_string()
183 if (!param.string) in vfs_parse_fs_string()
185 param.type = fs_value_is_string; in vfs_parse_fs_string()
188 ret = vfs_parse_fs_param(fc, ¶m); in vfs_parse_fs_string()
189 kfree(param.string); in vfs_parse_fs_string()
580 static int legacy_parse_param(struct fs_context *fc, struct fs_parameter *param) in legacy_parse_param() argument
587 ret = vfs_parse_fs_param_source(fc, param); in legacy_parse_param()
594 switch (param->type) { in legacy_parse_param()
596 len = 1 + param->size; in legacy_parse_param()
599 len += strlen(param->key); in legacy_parse_param()
603 param->key); in legacy_parse_param()
608 if (strchr(param->key, ',') || in legacy_parse_param()
609 (param->type == fs_value_is_string && in legacy_parse_param()
610 memchr(param->string, ',', param->size))) in legacy_parse_param()
612 param->key); in legacy_parse_param()
621 len = strlen(param->key); in legacy_parse_param()
622 memcpy(ctx->legacy_data + size, param->key, len); in legacy_parse_param()
624 if (param->type == fs_value_is_string) { in legacy_parse_param()
626 memcpy(ctx->legacy_data + size, param->string, param->size); in legacy_parse_param()
627 size += param->size; in legacy_parse_param()