Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 33) sorted by relevance

12

/linux-4.19.296/fs/devpts/
Dinode.c249 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument
255 opts->setuid = 0; in parse_mount_options()
256 opts->setgid = 0; in parse_mount_options()
257 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options()
258 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options()
259 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options()
260 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options()
261 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options()
267 opts->reserve = in parse_mount_options()
286 opts->uid = uid; in parse_mount_options()
[all …]
/linux-4.19.296/fs/fat/
Dinode.c706 static void fat_reset_iocharset(struct fat_mount_options *opts) in fat_reset_iocharset() argument
708 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset()
710 kfree(opts->iocharset); in fat_reset_iocharset()
711 opts->iocharset = fat_default_iocharset; in fat_reset_iocharset()
943 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local
944 int isvfat = opts->isvfat; in fat_show_options()
946 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options()
948 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options()
949 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options()
951 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options()
[all …]
Dnamei_msdos.c19 unsigned char *res, struct fat_mount_options *opts) in msdos_format_name() argument
32 if (opts->dotsOK) { in msdos_format_name()
47 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name()
49 if (opts->name_check == 's' && strchr(bad_if_strict, c)) in msdos_format_name()
51 if (c >= 'A' && c <= 'Z' && opts->name_check == 's') in msdos_format_name()
68 *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c - 32 : c; in msdos_format_name()
72 if (opts->name_check == 's' && len && c != '.') { in msdos_format_name()
86 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name()
88 if (opts->name_check == 's' && in msdos_format_name()
94 if (opts->name_check == 's') in msdos_format_name()
[all …]
Dmisc.c21 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error() local
33 if (opts->errors == FAT_ERRORS_PANIC) in __fat_fs_error()
35 else if (opts->errors == FAT_ERRORS_RO && !sb_rdonly(sb)) { in __fat_fs_error()
Dnamei_vfat.c330 struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; in vfat_create_shortname() local
450 if (opts->shortname & VFAT_SFN_CREATE_WIN95) { in vfat_create_shortname()
452 } else if (opts->shortname & VFAT_SFN_CREATE_WINNT) { in vfat_create_shortname()
467 if (opts->numtail == 0) in vfat_create_shortname()
584 struct fat_mount_options *opts = &sbi->options; in vfat_build_slots() local
602 opts->unicode_xlate, opts->utf8, sbi->nls_io); in vfat_build_slots()
/linux-4.19.296/fs/squashfs/
Dxz_wrapper.c55 struct comp_opts *opts; in squashfs_xz_comp_opts() local
58 opts = kmalloc(sizeof(*opts), GFP_KERNEL); in squashfs_xz_comp_opts()
59 if (opts == NULL) { in squashfs_xz_comp_opts()
71 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); in squashfs_xz_comp_opts()
74 n = ffs(opts->dict_size) - 1; in squashfs_xz_comp_opts()
75 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + in squashfs_xz_comp_opts()
82 opts->dict_size = max_t(int, msblk->block_size, in squashfs_xz_comp_opts()
85 return opts; in squashfs_xz_comp_opts()
88 kfree(opts); in squashfs_xz_comp_opts()
/linux-4.19.296/fs/tracefs/
Dinode.c146 unsigned int opts; member
238 static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) in tracefs_parse_options() argument
247 opts->opts = 0; in tracefs_parse_options()
248 opts->mode = TRACEFS_DEFAULT_MODE; in tracefs_parse_options()
262 opts->uid = uid; in tracefs_parse_options()
270 opts->gid = gid; in tracefs_parse_options()
275 opts->mode = option & S_IALLUGO; in tracefs_parse_options()
283 opts->opts |= BIT(token); in tracefs_parse_options()
293 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_apply_options() local
300 if (!remount || opts->opts & BIT(Opt_mode)) { in tracefs_apply_options()
[all …]
/linux-4.19.296/fs/hfsplus/
Doptions.c49 void hfsplus_fill_defaults(struct hfsplus_sb_info *opts) in hfsplus_fill_defaults() argument
51 if (!opts) in hfsplus_fill_defaults()
54 opts->creator = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults()
55 opts->type = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults()
56 opts->umask = current_umask(); in hfsplus_fill_defaults()
57 opts->uid = current_uid(); in hfsplus_fill_defaults()
58 opts->gid = current_gid(); in hfsplus_fill_defaults()
59 opts->part = -1; in hfsplus_fill_defaults()
60 opts->session = -1; in hfsplus_fill_defaults()
/linux-4.19.296/fs/exofs/
Dsuper.c82 static int parse_options(char *options, struct exofs_mountopt *opts) in parse_options() argument
91 memset(opts, 0, sizeof(*opts)); in parse_options()
92 opts->timeout = BLK_DEFAULT_SG_TIMEOUT; in parse_options()
104 kfree(opts->dev_name); in parse_options()
105 opts->dev_name = match_strdup(&args[0]); in parse_options()
106 if (unlikely(!opts->dev_name)) { in parse_options()
110 opts->is_osdname = true; in parse_options()
115 opts->pid = simple_strtoull(str, NULL, 0); in parse_options()
116 if (opts->pid < EXOFS_MIN_PID) { in parse_options()
130 opts->timeout = option * HZ; in parse_options()
[all …]
/linux-4.19.296/include/net/netfilter/
Dnf_conntrack_synproxy.h78 struct synproxy_options *opts);
79 unsigned int synproxy_options_size(const struct synproxy_options *opts);
81 const struct synproxy_options *opts);
84 struct synproxy_options *opts);
85 void synproxy_check_timestamp_cookie(struct synproxy_options *opts);
/linux-4.19.296/fs/ext2/
Dsuper.c486 struct ext2_mount_options *opts) in parse_options() argument
505 clear_opt (opts->s_mount_opt, MINIX_DF); in parse_options()
508 set_opt (opts->s_mount_opt, MINIX_DF); in parse_options()
511 set_opt (opts->s_mount_opt, GRPID); in parse_options()
514 clear_opt (opts->s_mount_opt, GRPID); in parse_options()
525 opts->s_resuid = uid; in parse_options()
535 opts->s_resgid = gid; in parse_options()
542 clear_opt (opts->s_mount_opt, ERRORS_CONT); in parse_options()
543 clear_opt (opts->s_mount_opt, ERRORS_RO); in parse_options()
544 set_opt (opts->s_mount_opt, ERRORS_PANIC); in parse_options()
[all …]
/linux-4.19.296/fs/befs/
Dlinuxvfs.c697 parse_options(char *options, struct befs_mount_options *opts) in parse_options() argument
706 opts->uid = GLOBAL_ROOT_UID; in parse_options()
707 opts->gid = GLOBAL_ROOT_GID; in parse_options()
708 opts->use_uid = 0; in parse_options()
709 opts->use_gid = 0; in parse_options()
710 opts->iocharset = NULL; in parse_options()
711 opts->debug = 0; in parse_options()
735 opts->uid = uid; in parse_options()
736 opts->use_uid = 1; in parse_options()
749 opts->gid = gid; in parse_options()
[all …]
/linux-4.19.296/fs/debugfs/
Dinode.c70 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) in debugfs_parse_options() argument
79 opts->mode = DEBUGFS_DEFAULT_MODE; in debugfs_parse_options()
93 opts->uid = uid; in debugfs_parse_options()
101 opts->gid = gid; in debugfs_parse_options()
106 opts->mode = option & S_IALLUGO; in debugfs_parse_options()
122 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_apply_options() local
125 inode->i_mode |= opts->mode; in debugfs_apply_options()
127 inode->i_uid = opts->uid; in debugfs_apply_options()
128 inode->i_gid = opts->gid; in debugfs_apply_options()
152 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_show_options() local
[all …]
/linux-4.19.296/include/linux/
Dsecurity.h78 int cap, unsigned int opts);
198 static inline void security_init_mnt_opts(struct security_mnt_opts *opts) in security_init_mnt_opts() argument
200 opts->mnt_opts = NULL; in security_init_mnt_opts()
201 opts->mnt_opts_flags = NULL; in security_init_mnt_opts()
202 opts->num_mnt_opts = 0; in security_init_mnt_opts()
205 static inline void security_free_mnt_opts(struct security_mnt_opts *opts) in security_free_mnt_opts() argument
208 if (opts->mnt_opts) in security_free_mnt_opts()
209 for (i = 0; i < opts->num_mnt_opts; i++) in security_free_mnt_opts()
210 kfree(opts->mnt_opts[i]); in security_free_mnt_opts()
211 kfree(opts->mnt_opts); in security_free_mnt_opts()
[all …]
/linux-4.19.296/include/net/
Dicmp.h55 struct ip_options opts = { 0 }; in icmp_ndo_send() local
56 __icmp_send(skb_in, type, code, info, &opts); in icmp_ndo_send()
/linux-4.19.296/fs/jffs2/
Dsuper.c92 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_show_options() local
94 if (opts->override_compr) in jffs2_show_options()
95 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); in jffs2_show_options()
96 if (opts->rp_size) in jffs2_show_options()
97 seq_printf(s, ",rp_size=%u", opts->rp_size / 1024); in jffs2_show_options()
Dnodemgmt.c27 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_rp_can_write() local
33 if (avail < 2 * opts->rp_size) in jffs2_rp_can_write()
37 opts->rp_size, c->dirty_size, c->free_size, in jffs2_rp_can_write()
41 if (avail > opts->rp_size) in jffs2_rp_can_write()
/linux-4.19.296/fs/reiserfs/
Dsuper.c731 long opts = REISERFS_SB(s)->s_mount_opt; in reiserfs_show_options() local
733 if (opts & (1 << REISERFS_LARGETAIL)) in reiserfs_show_options()
735 else if (!(opts & (1 << REISERFS_SMALLTAIL))) in reiserfs_show_options()
739 if (!(opts & (1 << REISERFS_BARRIER_FLUSH))) in reiserfs_show_options()
743 if (opts & (1 << REISERFS_ERROR_CONTINUE)) in reiserfs_show_options()
745 else if (opts & (1 << REISERFS_ERROR_PANIC)) in reiserfs_show_options()
749 if (opts & (1 << REISERFS_DATA_LOG)) in reiserfs_show_options()
751 else if (opts & (1 << REISERFS_DATA_WRITEBACK)) in reiserfs_show_options()
755 if (opts & (1 << REISERFS_ATTRS)) in reiserfs_show_options()
758 if (opts & (1 << REISERFS_XATTRS_USER)) in reiserfs_show_options()
[all …]
/linux-4.19.296/fs/ramfs/
Dinode.c188 static int ramfs_parse_options(char *data, struct ramfs_mount_opts *opts) in ramfs_parse_options() argument
195 opts->mode = RAMFS_DEFAULT_MODE; in ramfs_parse_options()
206 opts->mode = option & S_IALLUGO; in ramfs_parse_options()
/linux-4.19.296/include/uapi/linux/netfilter_ipv6/
Dip6t_opts.h13 __u16 opts[IP6T_OPTS_OPTSNR]; /* opts */ member
/linux-4.19.296/fs/ocfs2/
Dsuper.c1530 unsigned long opts = osb->s_mount_opt; in ocfs2_show_options() local
1533 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { in ocfs2_show_options()
1535 if (opts & OCFS2_MOUNT_HB_LOCAL) in ocfs2_show_options()
1542 if (opts & OCFS2_MOUNT_NOINTR) in ocfs2_show_options()
1545 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_show_options()
1550 if (opts & OCFS2_MOUNT_BARRIER) in ocfs2_show_options()
1553 if (opts & OCFS2_MOUNT_ERRORS_PANIC) in ocfs2_show_options()
1555 else if (opts & OCFS2_MOUNT_ERRORS_CONT) in ocfs2_show_options()
1573 if (opts & OCFS2_MOUNT_LOCALFLOCKS) in ocfs2_show_options()
1579 if (opts & OCFS2_MOUNT_USRQUOTA) in ocfs2_show_options()
[all …]
/linux-4.19.296/include/linux/power/
Dbq27xxx_battery.h59 u32 opts; member
/linux-4.19.296/fs/9p/
Dv9fs.c177 static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) in v9fs_parse_options() argument
195 if (!opts) in v9fs_parse_options()
198 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
/linux-4.19.296/fs/btrfs/
Dsuper.c894 char *device_name, *opts, *orig, *p; in btrfs_parse_device_options() local
907 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_device_options()
908 if (!opts) in btrfs_parse_device_options()
910 orig = opts; in btrfs_parse_device_options()
912 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_device_options()
949 char *opts, *orig, *p; in btrfs_parse_subvol_options() local
960 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_subvol_options()
961 if (!opts) in btrfs_parse_subvol_options()
963 orig = opts; in btrfs_parse_subvol_options()
965 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_subvol_options()
/linux-4.19.296/include/linux/mtd/
Drawnand.h1449 #define LEGACY_ID_NAND(nm, devid, chipsz, erasesz, opts) \ argument
1451 .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) }
1463 #define EXTENDED_ID_NAND(nm, devid, chipsz, opts) \ argument
1465 .options = (opts) }

12