Home
last modified time | relevance | path

Searched refs:param (Results 1 – 25 of 31) sorted by relevance

12

/fs/
Dfs_parser.c56 struct fs_parameter *param, bool *negated) in fs_lookup_key() argument
59 const char *name = param->key; in fs_lookup_key()
60 bool want_flag = param->type == fs_value_is_flag; in fs_lookup_key()
105 struct fs_parameter *param, in __fs_parse() argument
112 p = fs_lookup_key(desc, param, &result->negated); in __fs_parse()
117 warn_plog(log, "Deprecated parameter '%s'", param->key); in __fs_parse()
123 if (param->type != fs_value_is_flag) in __fs_parse()
125 param->key); in __fs_parse()
128 int ret = p->type(log, p, param, result); in __fs_parse()
144 struct fs_parameter *param, in fs_lookup_param() argument
[all …]
Dfsopen.c217 struct fs_parameter *param) in vfs_fsconfig_locked() argument
265 return vfs_parse_fs_param(fc, param); in vfs_fsconfig_locked()
326 struct fs_parameter param = { in SYSCALL_DEFINE5() local
384 param.key = strndup_user(_key, 256); in SYSCALL_DEFINE5()
385 if (IS_ERR(param.key)) { in SYSCALL_DEFINE5()
386 ret = PTR_ERR(param.key); in SYSCALL_DEFINE5()
393 param.type = fs_value_is_flag; in SYSCALL_DEFINE5()
396 param.type = fs_value_is_string; in SYSCALL_DEFINE5()
397 param.string = strndup_user(_value, 256); in SYSCALL_DEFINE5()
398 if (IS_ERR(param.string)) { in SYSCALL_DEFINE5()
[all …]
Dfs_context.c94 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()
[all …]
/fs/autofs/
Ddev-ioctl.c56 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument
60 if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) || in check_dev_ioctl_version()
61 (param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) { in check_dev_ioctl_version()
66 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version()
71 param->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR; in check_dev_ioctl_version()
72 param->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR; in check_dev_ioctl_version()
102 static inline void free_dev_ioctl(struct autofs_dev_ioctl *param) in free_dev_ioctl() argument
104 kfree(param); in free_dev_ioctl()
111 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument
115 err = check_dev_ioctl_version(cmd, param); in validate_dev_ioctl()
[all …]
/fs/orangefs/
Dorangefs-sysfs.c351 new_op->upcall.req.param.type = ORANGEFS_PARAM_REQUEST_GET; in sysfs_service_op_show()
365 new_op->upcall.req.param.op = in sysfs_service_op_show()
369 new_op->upcall.req.param.op = in sysfs_service_op_show()
373 new_op->upcall.req.param.op = in sysfs_service_op_show()
378 new_op->upcall.req.param.op = in sysfs_service_op_show()
383 new_op->upcall.req.param.op = in sysfs_service_op_show()
388 new_op->upcall.req.param.op = in sysfs_service_op_show()
393 new_op->upcall.req.param.op = in sysfs_service_op_show()
397 new_op->upcall.req.param.op = in sysfs_service_op_show()
401 new_op->upcall.req.param.op = in sysfs_service_op_show()
[all …]
Dorangefs-debugfs.c448 new_op->upcall.req.param.op = in orangefs_debug_write()
450 new_op->upcall.req.param.type = ORANGEFS_PARAM_REQUEST_SET; in orangefs_debug_write()
451 memset(new_op->upcall.req.param.s_value, in orangefs_debug_write()
454 sprintf(new_op->upcall.req.param.s_value, in orangefs_debug_write()
Ddowncall.h118 struct orangefs_param_response param; member
Dupcall.h253 struct orangefs_param_request_s param; member
/fs/cifs/
Dfs_context.c540 struct fs_parameter *param);
826 struct fs_parameter *param) in smb3_fs_context_parse_param() argument
836 cifs_dbg(FYI, "CIFS: parsing cifs mount option '%s'\n", param->key); in smb3_fs_context_parse_param()
842 if (param->type == fs_value_is_string && param->string[0] == 0) { in smb3_fs_context_parse_param()
843 if (!strcmp("pass", param->key) || !strcmp("password", param->key)) { in smb3_fs_context_parse_param()
846 } else if (!strcmp("user", param->key) || !strcmp("username", param->key)) { in smb3_fs_context_parse_param()
853 opt = fs_parse(fc, smb3_fs_parameters, param, &result); in smb3_fs_context_parse_param()
1113 switch (smb3_parse_devname(param->string, ctx)) { in smb3_fs_context_parse_param()
1126 ctx->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1131 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
[all …]
Dcifsglob.h1669 static inline void free_dfs_info_param(struct dfs_info3_param *param) in free_dfs_info_param() argument
1671 if (param) { in free_dfs_info_param()
1672 kfree(param->path_name); in free_dfs_info_param()
1673 kfree(param->node_name); in free_dfs_info_param()
1677 static inline void free_dfs_info_array(struct dfs_info3_param *param, in free_dfs_info_array() argument
1681 if ((number_of_items == 0) || (param == NULL)) in free_dfs_info_array()
1684 kfree(param[i].path_name); in free_dfs_info_array()
1685 kfree(param[i].node_name); in free_dfs_info_array()
1687 kfree(param); in free_dfs_info_array()
/fs/proc/
Droot.c61 static int proc_parse_hidepid_param(struct fs_context *fc, struct fs_parameter *param) in proc_parse_hidepid_param() argument
68 if (param->type != fs_value_is_string) in proc_parse_hidepid_param()
71 if (!kstrtouint(param->string, base, &result.uint_32)) { in proc_parse_hidepid_param()
73 return invalf(fc, "proc: unknown value of hidepid - %s\n", param->string); in proc_parse_hidepid_param()
78 if (!strcmp(param->string, "off")) in proc_parse_hidepid_param()
80 else if (!strcmp(param->string, "noaccess")) in proc_parse_hidepid_param()
82 else if (!strcmp(param->string, "invisible")) in proc_parse_hidepid_param()
84 else if (!strcmp(param->string, "ptraceable")) in proc_parse_hidepid_param()
87 return invalf(fc, "proc: unknown value of hidepid - %s\n", param->string); in proc_parse_hidepid_param()
115 static int proc_parse_param(struct fs_context *fc, struct fs_parameter *param) in proc_parse_param() argument
[all …]
Dproc_sysctl.c1773 static const char *sysctl_find_alias(char *param) in sysctl_find_alias() argument
1778 if (strcmp(alias->kernel_param, param) == 0) in sysctl_find_alias()
1785 bool sysctl_is_alias(char *param) in sysctl_is_alias() argument
1787 const char *alias = sysctl_find_alias(param); in sysctl_is_alias()
1793 static int process_sysctl_arg(char *param, char *val, in process_sysctl_arg() argument
1805 if (strncmp(param, "sysctl", sizeof("sysctl") - 1) == 0) { in process_sysctl_arg()
1806 param += sizeof("sysctl") - 1; in process_sysctl_arg()
1808 if (param[0] != '/' && param[0] != '.') in process_sysctl_arg()
1811 param++; in process_sysctl_arg()
1813 param = (char *) sysctl_find_alias(param); in process_sysctl_arg()
[all …]
/fs/nfs/
Dnfs4super.c154 struct fs_parameter param = { in do_nfs4_mount() local
177 param.string = kmalloc(len, GFP_KERNEL); in do_nfs4_mount()
178 if (param.string == NULL) { in do_nfs4_mount()
185 param.size = snprintf(param.string, len, "[%s]:/", hostname); in do_nfs4_mount()
187 param.size = snprintf(param.string, len, "%s:/", hostname); in do_nfs4_mount()
188 ret = vfs_parse_fs_param(root_fc, &param); in do_nfs4_mount()
189 kfree(param.string); in do_nfs4_mount()
Dfs_context.c371 struct fs_parameter *param) in nfs_parse_security_flavors() argument
375 char *string = param->string, *p; in nfs_parse_security_flavors()
378 dfprintk(MOUNT, "NFS: parsing %s=%s option\n", param->key, param->string); in nfs_parse_security_flavors()
472 struct fs_parameter *param) in nfs_fs_context_parse_param() argument
480 dfprintk(MOUNT, "NFS: parsing nfs mount option '%s'\n", param->key); in nfs_fs_context_parse_param()
482 opt = fs_parse(fc, nfs_fs_parameters, param, &result); in nfs_fs_context_parse_param()
493 fc->source = param->string; in nfs_fs_context_parse_param()
494 param->string = NULL; in nfs_fs_context_parse_param()
553 ret = xprt_find_transport_ident(param->key); in nfs_fs_context_parse_param()
593 ctx->fscache_uniq = param->string; in nfs_fs_context_parse_param()
[all …]
/fs/ceph/
Dsuper.c239 static int ceph_parse_source(struct fs_parameter *param, struct fs_context *fc) in ceph_parse_source() argument
243 char *dev_name = param->string, *dev_name_end; in ceph_parse_source()
274 ret = ceph_parse_mon_ips(param->string, dev_name_end - dev_name, in ceph_parse_source()
279 fc->source = param->string; in ceph_parse_source()
280 param->string = NULL; in ceph_parse_source()
285 struct fs_parameter *param) in ceph_parse_mount_param() argument
293 ret = ceph_parse_param(param, pctx->copts, fc->log.log); in ceph_parse_mount_param()
297 token = fs_parse(fc, ceph_mount_parameters, param, &result); in ceph_parse_mount_param()
298 dout("%s fs_parse '%s' token %d\n", __func__, param->key, token); in ceph_parse_mount_param()
305 fsopt->snapdir_name = param->string; in ceph_parse_mount_param()
[all …]
/fs/hugetlbfs/
Dinode.c1233 static int hugetlbfs_parse_param(struct fs_context *fc, struct fs_parameter *param) in hugetlbfs_parse_param() argument
1241 opt = fs_parse(fc, hugetlb_fs_parameters, param, &result); in hugetlbfs_parse_param()
1264 if (!param->string || !isdigit(param->string[0])) in hugetlbfs_parse_param()
1266 ctx->max_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param()
1274 if (!param->string || !isdigit(param->string[0])) in hugetlbfs_parse_param()
1276 ctx->nr_inodes = memparse(param->string, &rest); in hugetlbfs_parse_param()
1280 ps = memparse(param->string, &rest); in hugetlbfs_parse_param()
1290 if (!param->string || !isdigit(param->string[0])) in hugetlbfs_parse_param()
1292 ctx->min_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param()
1304 param->string, param->key); in hugetlbfs_parse_param()
/fs/afs/
Dsuper.c224 static int afs_parse_source(struct fs_context *fc, struct fs_parameter *param) in afs_parse_source() argument
228 const char *cellname, *suffix, *name = param->string; in afs_parse_source()
310 fc->source = param->string; in afs_parse_source()
311 param->string = NULL; in afs_parse_source()
318 static int afs_parse_param(struct fs_context *fc, struct fs_parameter *param) in afs_parse_param() argument
324 opt = fs_parse(fc, afs_fs_parameters, param, &result); in afs_parse_param()
330 return afs_parse_source(fc, param); in afs_parse_param()
/fs/xfs/
Dxfs_super.c1182 struct fs_parameter *param, in xfs_fs_warn_deprecated() argument
1192 xfs_warn(fc->s_fs_info, "%s mount option is deprecated.", param->key); in xfs_fs_warn_deprecated()
1203 struct fs_parameter *param) in xfs_fs_parse_param() argument
1210 opt = fs_parse(fc, xfs_fs_parameters, param, &result); in xfs_fs_parse_param()
1219 if (suffix_kstrtoint(param->string, 10, &parsing_mp->m_logbsize)) in xfs_fs_parse_param()
1224 parsing_mp->m_logname = kstrdup(param->string, GFP_KERNEL); in xfs_fs_parse_param()
1230 parsing_mp->m_rtname = kstrdup(param->string, GFP_KERNEL); in xfs_fs_parse_param()
1235 if (suffix_kstrtoint(param->string, 10, &size)) in xfs_fs_parse_param()
1330 xfs_fs_warn_deprecated(fc, param, XFS_FEAT_IKEEP, true); in xfs_fs_parse_param()
1334 xfs_fs_warn_deprecated(fc, param, XFS_FEAT_IKEEP, false); in xfs_fs_parse_param()
[all …]
/fs/vboxsf/
Dsuper.c54 static int vboxsf_parse_param(struct fs_context *fc, struct fs_parameter *param) in vboxsf_parse_param() argument
62 opt = fs_parse(fc, vboxsf_fs_parameters, param, &result); in vboxsf_parse_param()
72 ctx->nls_name = param->string; in vboxsf_parse_param()
73 param->string = NULL; in vboxsf_parse_param()
/fs/ramfs/
Dinode.c199 static int ramfs_parse_param(struct fs_context *fc, struct fs_parameter *param) in ramfs_parse_param() argument
205 opt = fs_parse(fc, ramfs_fs_parameters, param, &result); in ramfs_parse_param()
/fs/exfat/
Dsuper.c257 static int exfat_parse_param(struct fs_context *fc, struct fs_parameter *param) in exfat_parse_param() argument
264 opt = fs_parse(fc, exfat_parameters, param, &result); in exfat_parse_param()
290 opts->iocharset = param->string; in exfat_parse_param()
291 param->string = NULL; in exfat_parse_param()
/fs/jffs2/
Dsuper.c187 static int jffs2_parse_param(struct fs_context *fc, struct fs_parameter *param) in jffs2_parse_param() argument
193 opt = fs_parse(fc, jffs2_fs_parameters, param, &result); in jffs2_parse_param()
/fs/gfs2/
Dops_fstype.c1439 static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param) in gfs2_parse_param() argument
1445 o = fs_parse(fc, gfs2_fs_parameters, param, &result); in gfs2_parse_param()
1451 strscpy(args->ar_lockproto, param->string, GFS2_LOCKNAME_LEN); in gfs2_parse_param()
1454 strscpy(args->ar_locktable, param->string, GFS2_LOCKNAME_LEN); in gfs2_parse_param()
1457 strscpy(args->ar_hostdata, param->string, GFS2_LOCKNAME_LEN); in gfs2_parse_param()
1537 return invalfc(fc, "invalid mount option: %s", param->key); in gfs2_parse_param()
/fs/erofs/
Dsuper.c496 struct fs_parameter *param) in erofs_fc_parse_param() argument
503 opt = fs_parse(fc, erofs_fs_parameters, param, &result); in erofs_fc_parse_param()
547 dif->path = kstrdup(param->string, GFP_KERNEL); in erofs_fc_parse_param()
/fs/squashfs/
Dsuper.c66 static int squashfs_parse_param(struct fs_context *fc, struct fs_parameter *param) in squashfs_parse_param() argument
72 opt = fs_parse(fc, squashfs_fs_parameters, param, &result); in squashfs_parse_param()

12