/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 | 98 int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param) in vfs_parse_fs_param() argument 102 if (!param->key) in vfs_parse_fs_param() 105 ret = vfs_parse_sb_flag(fc, param->key); in vfs_parse_fs_param() 109 ret = security_fs_context_parse_param(fc, param); in vfs_parse_fs_param() 117 ret = fc->ops->parse_param(fc, param); in vfs_parse_fs_param() 125 if (strcmp(param->key, "source") == 0) { in vfs_parse_fs_param() 126 if (param->type != fs_value_is_string) in vfs_parse_fs_param() 130 fc->source = param->string; in vfs_parse_fs_param() 131 param->string = NULL; in vfs_parse_fs_param() 136 fc->fs_type->name, param->key); in vfs_parse_fs_param() [all …]
|
/fs/autofs/ |
D | dev-ioctl.c | 55 static int check_dev_ioctl_version(int cmd, struct autofs_dev_ioctl *param) in check_dev_ioctl_version() argument 59 if ((param->ver_major != AUTOFS_DEV_IOCTL_VERSION_MAJOR) || in check_dev_ioctl_version() 60 (param->ver_minor > AUTOFS_DEV_IOCTL_VERSION_MINOR)) { in check_dev_ioctl_version() 65 param->ver_major, param->ver_minor, cmd); in check_dev_ioctl_version() 70 param->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR; in check_dev_ioctl_version() 71 param->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR; in check_dev_ioctl_version() 101 static inline void free_dev_ioctl(struct autofs_dev_ioctl *param) in free_dev_ioctl() argument 103 kfree(param); in free_dev_ioctl() 110 static int validate_dev_ioctl(int cmd, struct autofs_dev_ioctl *param) in validate_dev_ioctl() argument 114 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/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 | 1775 static const char *sysctl_find_alias(char *param) in sysctl_find_alias() argument 1780 if (strcmp(alias->kernel_param, param) == 0) in sysctl_find_alias() 1788 static int process_sysctl_arg(char *param, char *val, in process_sysctl_arg() argument 1800 if (strncmp(param, "sysctl", sizeof("sysctl") - 1) == 0) { in process_sysctl_arg() 1801 param += sizeof("sysctl") - 1; in process_sysctl_arg() 1803 if (param[0] != '/' && param[0] != '.') in process_sysctl_arg() 1806 param++; in process_sysctl_arg() 1808 param = (char *) sysctl_find_alias(param); in process_sysctl_arg() 1809 if (!param) in process_sysctl_arg() 1841 path = kasprintf(GFP_KERNEL, "sys/%s", 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 | 336 struct fs_parameter *param) in nfs_parse_security_flavors() argument 340 char *string = param->string, *p; in nfs_parse_security_flavors() 343 dfprintk(MOUNT, "NFS: parsing %s=%s option\n", param->key, param->string); in nfs_parse_security_flavors() 437 struct fs_parameter *param) in nfs_fs_context_parse_param() argument 445 dfprintk(MOUNT, "NFS: parsing nfs mount option '%s'\n", param->key); in nfs_fs_context_parse_param() 447 opt = fs_parse(fc, nfs_fs_parameters, param, &result); in nfs_fs_context_parse_param() 455 fc->source = param->string; in nfs_fs_context_parse_param() 456 param->string = NULL; in nfs_fs_context_parse_param() 519 xprt_load_transport(param->key); in nfs_fs_context_parse_param() 556 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 | 1244 static int hugetlbfs_parse_param(struct fs_context *fc, struct fs_parameter *param) in hugetlbfs_parse_param() argument 1253 opt = fs_parse(fc, hugetlb_fs_parameters, param, &result); in hugetlbfs_parse_param() 1276 if (!param->string || !isdigit(param->string[0])) in hugetlbfs_parse_param() 1278 ctx->max_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param() 1286 if (!param->string || !isdigit(param->string[0])) in hugetlbfs_parse_param() 1288 ctx->nr_inodes = memparse(param->string, &rest); in hugetlbfs_parse_param() 1292 ps = memparse(param->string, &rest); in hugetlbfs_parse_param() 1303 if (!param->string || !isdigit(param->string[0])) in hugetlbfs_parse_param() 1305 ctx->min_size_opt = memparse(param->string, &rest); in hugetlbfs_parse_param() 1317 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 | 1165 struct fs_parameter *param, in xfs_fs_warn_deprecated() argument 1175 xfs_warn(fc->s_fs_info, "%s mount option is deprecated.", param->key); in xfs_fs_warn_deprecated() 1186 struct fs_parameter *param) in xfs_fc_parse_param() argument 1193 opt = fs_parse(fc, xfs_fs_parameters, param, &result); in xfs_fc_parse_param() 1202 if (suffix_kstrtoint(param->string, 10, &parsing_mp->m_logbsize)) in xfs_fc_parse_param() 1207 parsing_mp->m_logname = kstrdup(param->string, GFP_KERNEL); in xfs_fc_parse_param() 1213 parsing_mp->m_rtname = kstrdup(param->string, GFP_KERNEL); in xfs_fc_parse_param() 1218 if (suffix_kstrtoint(param->string, 10, &size)) in xfs_fc_parse_param() 1317 xfs_fs_warn_deprecated(fc, param, XFS_MOUNT_IKEEP, true); in xfs_fc_parse_param() 1321 xfs_fs_warn_deprecated(fc, param, XFS_MOUNT_IKEEP, false); in xfs_fc_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/cifs/ |
D | cifsglob.h | 1718 static inline void free_dfs_info_param(struct dfs_info3_param *param) in free_dfs_info_param() argument 1720 if (param) { in free_dfs_info_param() 1721 kfree(param->path_name); in free_dfs_info_param() 1722 kfree(param->node_name); in free_dfs_info_param() 1726 static inline void free_dfs_info_array(struct dfs_info3_param *param, in free_dfs_info_array() argument 1730 if ((number_of_items == 0) || (param == NULL)) in free_dfs_info_array() 1733 kfree(param[i].path_name); in free_dfs_info_array() 1734 kfree(param[i].node_name); in free_dfs_info_array() 1736 kfree(param); in free_dfs_info_array()
|
/fs/ramfs/ |
D | inode.c | 189 static int ramfs_parse_param(struct fs_context *fc, struct fs_parameter *param) in ramfs_parse_param() argument 195 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 | 1410 static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param) in gfs2_parse_param() argument 1416 o = fs_parse(fc, gfs2_fs_parameters, param, &result); in gfs2_parse_param() 1422 strscpy(args->ar_lockproto, param->string, GFS2_LOCKNAME_LEN); in gfs2_parse_param() 1425 strscpy(args->ar_locktable, param->string, GFS2_LOCKNAME_LEN); in gfs2_parse_param() 1428 strscpy(args->ar_hostdata, param->string, GFS2_LOCKNAME_LEN); in gfs2_parse_param() 1507 return invalfc(fc, "invalid mount option: %s", param->key); in gfs2_parse_param()
|
/fs/fuse/ |
D | inode.c | 536 static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) in fuse_parse_param() argument 553 opt = fs_parse(fc, fuse_fs_parameters, param, &result); in fuse_parse_param() 561 fc->source = param->string; in fuse_parse_param() 562 param->string = NULL; in fuse_parse_param() 568 ctx->subtype = param->string; in fuse_parse_param() 569 param->string = NULL; in fuse_parse_param()
|
/fs/erofs/ |
D | super.c | 378 struct fs_parameter *param) in erofs_fc_parse_param() argument 384 opt = fs_parse(fc, erofs_fs_parameters, param, &result); in erofs_fc_parse_param()
|
/fs/overlayfs/ |
D | copy_up.c | 25 static int ovl_ccup_set(const char *buf, const struct kernel_param *param) in ovl_ccup_set() argument 31 static int ovl_ccup_get(char *buf, const struct kernel_param *param) in ovl_ccup_get() argument
|