/fs/ |
D | fs_parser.c | 56 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 …]
|
D | fsopen.c | 217 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 …]
|
D | fs_context.c | 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() [all …]
|
/fs/autofs/ |
D | dev-ioctl.c | 56 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/ |
D | orangefs-sysfs.c | 351 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 …]
|
D | orangefs-debugfs.c | 448 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()
|
D | downcall.h | 118 struct orangefs_param_response param; member
|
D | upcall.h | 253 struct orangefs_param_request_s param; member
|
/fs/cifs/ |
D | fs_context.c | 540 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 …]
|
D | cifsglob.h | 1669 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/ |
D | root.c | 61 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 …]
|
D | proc_sysctl.c | 1773 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/ |
D | nfs4super.c | 154 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, ¶m); in do_nfs4_mount() 189 kfree(param.string); in do_nfs4_mount()
|
D | fs_context.c | 371 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/ |
D | super.c | 239 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/ |
D | inode.c | 1233 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/ |
D | super.c | 224 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/ |
D | xfs_super.c | 1182 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/ |
D | super.c | 54 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/ |
D | inode.c | 199 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/ |
D | super.c | 257 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/ |
D | super.c | 187 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/ |
D | ops_fstype.c | 1439 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/ |
D | super.c | 496 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/ |
D | super.c | 66 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()
|