/fs/fat/ |
D | inode.c | 715 static void fat_reset_iocharset(struct fat_mount_options *opts) in fat_reset_iocharset() argument 717 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset() 719 kfree(opts->iocharset); in fat_reset_iocharset() 720 opts->iocharset = fat_default_iocharset; in fat_reset_iocharset() 947 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local 948 int isvfat = opts->isvfat; in fat_show_options() 950 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options() 952 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options() 953 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options() 955 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options() [all …]
|
D | namei_msdos.c | 20 unsigned char *res, struct fat_mount_options *opts) in msdos_format_name() argument 33 if (opts->dotsOK) { in msdos_format_name() 48 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name() 50 if (opts->name_check == 's' && strchr(bad_if_strict, c)) in msdos_format_name() 52 if (c >= 'A' && c <= 'Z' && opts->name_check == 's') in msdos_format_name() 69 *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c - 32 : c; in msdos_format_name() 73 if (opts->name_check == 's' && len && c != '.') { in msdos_format_name() 87 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name() 89 if (opts->name_check == 's' && in msdos_format_name() 95 if (opts->name_check == 's') in msdos_format_name() [all …]
|
D | misc.c | 23 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error() local 35 if (opts->errors == FAT_ERRORS_PANIC) in __fat_fs_error() 37 else if (opts->errors == FAT_ERRORS_RO && !sb_rdonly(sb)) { in __fat_fs_error()
|
D | namei_vfat.c | 331 struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; in vfat_create_shortname() local 451 if (opts->shortname & VFAT_SFN_CREATE_WIN95) { in vfat_create_shortname() 453 } else if (opts->shortname & VFAT_SFN_CREATE_WINNT) { in vfat_create_shortname() 468 if (opts->numtail == 0) in vfat_create_shortname() 585 struct fat_mount_options *opts = &sbi->options; in vfat_build_slots() local 603 opts->unicode_xlate, opts->utf8, sbi->nls_io); in vfat_build_slots()
|
/fs/devpts/ |
D | inode.c | 246 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument 252 opts->setuid = 0; in parse_mount_options() 253 opts->setgid = 0; in parse_mount_options() 254 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 255 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options() 256 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options() 257 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options() 258 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options() 264 opts->reserve = in parse_mount_options() 283 opts->uid = uid; in parse_mount_options() [all …]
|
/fs/exfat/ |
D | super.c | 147 struct exfat_mount_options *opts = &sbi->options; in exfat_show_options() local 150 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in exfat_show_options() 152 from_kuid_munged(&init_user_ns, opts->fs_uid)); in exfat_show_options() 153 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in exfat_show_options() 155 from_kgid_munged(&init_user_ns, opts->fs_gid)); in exfat_show_options() 156 seq_printf(m, ",fmask=%04o,dmask=%04o", opts->fs_fmask, opts->fs_dmask); in exfat_show_options() 157 if (opts->allow_utime) in exfat_show_options() 158 seq_printf(m, ",allow_utime=%04o", opts->allow_utime); in exfat_show_options() 159 if (opts->utf8) in exfat_show_options() 163 if (opts->errors == EXFAT_ERRORS_CONT) in exfat_show_options() [all …]
|
D | misc.c | 28 struct exfat_mount_options *opts = &EXFAT_SB(sb)->options; in __exfat_fs_error() local 40 if (opts->errors == EXFAT_ERRORS_PANIC) { in __exfat_fs_error() 43 } else if (opts->errors == EXFAT_ERRORS_RO && !sb_rdonly(sb)) { in __exfat_fs_error()
|
D | balloc.c | 169 struct exfat_mount_options *opts = &sbi->options; in exfat_clear_bitmap() local 181 if (opts->discard) { in exfat_clear_bitmap() 190 opts->discard = 0; in exfat_clear_bitmap()
|
/fs/tracefs/ |
D | inode.c | 145 unsigned int opts; member 237 static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) in tracefs_parse_options() argument 246 opts->opts = 0; in tracefs_parse_options() 247 opts->mode = TRACEFS_DEFAULT_MODE; in tracefs_parse_options() 261 opts->uid = uid; in tracefs_parse_options() 269 opts->gid = gid; in tracefs_parse_options() 274 opts->mode = option & S_IALLUGO; in tracefs_parse_options() 282 opts->opts |= BIT(token); in tracefs_parse_options() 292 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_apply_options() local 299 if (!remount || opts->opts & BIT(Opt_mode)) { in tracefs_apply_options() [all …]
|
/fs/ntfs3/ |
D | super.c | 279 struct ntfs_mount_options *opts = fc->fs_private; in ntfs_fs_parse_param() local 289 opts->fs_uid = make_kuid(current_user_ns(), result.uint_32); in ntfs_fs_parse_param() 290 if (!uid_valid(opts->fs_uid)) in ntfs_fs_parse_param() 294 opts->fs_gid = make_kgid(current_user_ns(), result.uint_32); in ntfs_fs_parse_param() 295 if (!gid_valid(opts->fs_gid)) in ntfs_fs_parse_param() 301 opts->fs_fmask_inv = ~result.uint_32; in ntfs_fs_parse_param() 302 opts->fs_dmask_inv = ~result.uint_32; in ntfs_fs_parse_param() 303 opts->fmask = 1; in ntfs_fs_parse_param() 304 opts->dmask = 1; in ntfs_fs_parse_param() 309 opts->fs_dmask_inv = ~result.uint_32; in ntfs_fs_parse_param() [all …]
|
/fs/debugfs/ |
D | inode.c | 86 unsigned int opts; member 107 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) in debugfs_parse_options() argument 116 opts->opts = 0; in debugfs_parse_options() 117 opts->mode = DEBUGFS_DEFAULT_MODE; in debugfs_parse_options() 131 opts->uid = uid; in debugfs_parse_options() 139 opts->gid = gid; in debugfs_parse_options() 144 opts->mode = option & S_IALLUGO; in debugfs_parse_options() 152 opts->opts |= BIT(token); in debugfs_parse_options() 162 struct debugfs_mount_opts *opts = &fsi->mount_opts; in _debugfs_apply_options() local 169 if (!remount || opts->opts & BIT(Opt_mode)) { in _debugfs_apply_options() [all …]
|
/fs/squashfs/ |
D | xz_wrapper.c | 42 struct comp_opts *opts; in squashfs_xz_comp_opts() local 45 opts = kmalloc(sizeof(*opts), GFP_KERNEL); in squashfs_xz_comp_opts() 46 if (opts == NULL) { in squashfs_xz_comp_opts() 58 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); in squashfs_xz_comp_opts() 61 n = ffs(opts->dict_size) - 1; in squashfs_xz_comp_opts() 62 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + in squashfs_xz_comp_opts() 69 opts->dict_size = max_t(int, msblk->block_size, in squashfs_xz_comp_opts() 72 return opts; in squashfs_xz_comp_opts() 75 kfree(opts); in squashfs_xz_comp_opts()
|
D | super.c | 69 struct squashfs_mount_opts *opts = fc->fs_private; in squashfs_parse_param() local 79 opts->errors = result.uint_32; in squashfs_parse_param() 118 struct squashfs_mount_opts *opts = fc->fs_private; in squashfs_fill_super() local 137 msblk->panic_on_errors = (opts->errors == Opt_errors_panic); in squashfs_fill_super() 406 struct squashfs_mount_opts *opts = fc->fs_private; in squashfs_reconfigure() local 411 msblk->panic_on_errors = (opts->errors == Opt_errors_panic); in squashfs_reconfigure() 443 struct squashfs_mount_opts *opts; in squashfs_init_fs_context() local 445 opts = kzalloc(sizeof(*opts), GFP_KERNEL); in squashfs_init_fs_context() 446 if (!opts) in squashfs_init_fs_context() 449 fc->fs_private = opts; in squashfs_init_fs_context()
|
/fs/ext2/ |
D | super.c | 468 struct ext2_mount_options *opts) in parse_options() argument 487 clear_opt (opts->s_mount_opt, MINIX_DF); in parse_options() 490 set_opt (opts->s_mount_opt, MINIX_DF); in parse_options() 493 set_opt (opts->s_mount_opt, GRPID); in parse_options() 496 clear_opt (opts->s_mount_opt, GRPID); in parse_options() 507 opts->s_resuid = uid; in parse_options() 517 opts->s_resgid = gid; in parse_options() 524 clear_opt (opts->s_mount_opt, ERRORS_CONT); in parse_options() 525 clear_opt (opts->s_mount_opt, ERRORS_RO); in parse_options() 526 set_opt (opts->s_mount_opt, ERRORS_PANIC); in parse_options() [all …]
|
/fs/hfsplus/ |
D | options.c | 49 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()
|
/fs/befs/ |
D | linuxvfs.c | 692 parse_options(char *options, struct befs_mount_options *opts) in parse_options() argument 701 opts->uid = GLOBAL_ROOT_UID; in parse_options() 702 opts->gid = GLOBAL_ROOT_GID; in parse_options() 703 opts->use_uid = 0; in parse_options() 704 opts->use_gid = 0; in parse_options() 705 opts->iocharset = NULL; in parse_options() 706 opts->debug = 0; in parse_options() 730 opts->uid = uid; in parse_options() 731 opts->use_uid = 1; in parse_options() 744 opts->gid = gid; in parse_options() [all …]
|
/fs/dlm/ |
D | midcomms.c | 199 struct dlm_opts *opts; member 644 p->opts.o_nextcmd, nodeid); in dlm_midcomms_recv_node_lookup() 692 if (len < le16_to_cpu(p->opts.o_optlen)) in dlm_opts_check_msglen() 694 len -= le16_to_cpu(p->opts.o_optlen); in dlm_opts_check_msglen() 696 switch (p->opts.o_nextcmd) { in dlm_opts_check_msglen() 723 p->opts.o_nextcmd, nodeid); in dlm_opts_check_msglen() 779 p = (union dlm_packet *)((unsigned char *)p->opts.o_opts + in dlm_midcomms_receive_buffer_3_2() 780 le16_to_cpu(p->opts.o_optlen)); in dlm_midcomms_receive_buffer_3_2() 1026 static void dlm_fill_opts_header(struct dlm_opts *opts, uint16_t inner_len, in dlm_fill_opts_header() argument 1029 opts->o_header.h_cmd = DLM_OPTS; in dlm_fill_opts_header() [all …]
|
/fs/ceph/ |
D | super.c | 215 struct ceph_mount_options *opts; member 257 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_old_source() 277 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_new_source() 333 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_source() 385 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mon_addr() 399 struct ceph_mount_options *fsopt = pctx->opts; in ceph_parse_mount_param() 1200 struct ceph_mount_options *fsopt = pctx->opts; in ceph_get_tree() 1216 fsc = create_fs_client(pctx->opts, pctx->copts); in ceph_get_tree() 1217 pctx->opts = NULL; in ceph_get_tree() 1282 destroy_mount_options(pctx->opts); in ceph_free_fc() [all …]
|
/fs/jffs2/ |
D | super.c | 87 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_show_options() local 89 if (opts->override_compr) in jffs2_show_options() 90 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); in jffs2_show_options() 91 if (opts->set_rp_size) in jffs2_show_options() 92 seq_printf(s, ",rp_size=%u", opts->rp_size / 1024); in jffs2_show_options()
|
/fs/reiserfs/ |
D | super.c | 725 long opts = REISERFS_SB(s)->s_mount_opt; in reiserfs_show_options() local 727 if (opts & (1 << REISERFS_LARGETAIL)) in reiserfs_show_options() 729 else if (!(opts & (1 << REISERFS_SMALLTAIL))) in reiserfs_show_options() 733 if (!(opts & (1 << REISERFS_BARRIER_FLUSH))) in reiserfs_show_options() 737 if (opts & (1 << REISERFS_ERROR_CONTINUE)) in reiserfs_show_options() 739 else if (opts & (1 << REISERFS_ERROR_PANIC)) in reiserfs_show_options() 743 if (opts & (1 << REISERFS_DATA_LOG)) in reiserfs_show_options() 745 else if (opts & (1 << REISERFS_DATA_WRITEBACK)) in reiserfs_show_options() 749 if (opts & (1 << REISERFS_ATTRS)) in reiserfs_show_options() 752 if (opts & (1 << REISERFS_XATTRS_USER)) in reiserfs_show_options() [all …]
|
/fs/smb/client/ |
D | cifsroot.c | 83 int __init cifs_root_data(char **dev, char **opts) in cifs_root_data() argument 91 *opts = root_opts; in cifs_root_data()
|
/fs/ocfs2/ |
D | super.c | 1474 unsigned long opts = osb->s_mount_opt; in ocfs2_show_options() local 1477 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { in ocfs2_show_options() 1479 if (opts & OCFS2_MOUNT_HB_LOCAL) in ocfs2_show_options() 1486 if (opts & OCFS2_MOUNT_NOINTR) in ocfs2_show_options() 1489 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_show_options() 1494 if (opts & OCFS2_MOUNT_BARRIER) in ocfs2_show_options() 1497 if (opts & OCFS2_MOUNT_ERRORS_PANIC) in ocfs2_show_options() 1499 else if (opts & OCFS2_MOUNT_ERRORS_CONT) in ocfs2_show_options() 1517 if (opts & OCFS2_MOUNT_LOCALFLOCKS) in ocfs2_show_options() 1523 if (opts & OCFS2_MOUNT_USRQUOTA) in ocfs2_show_options() [all …]
|
/fs/btrfs/ |
D | super.c | 559 char *opts; in parse_rescue_options() local 565 opts = kstrdup(options, GFP_KERNEL); in parse_rescue_options() 566 if (!opts) in parse_rescue_options() 568 orig = opts; in parse_rescue_options() 570 while ((p = strsep(&opts, ":")) != NULL) { in parse_rescue_options() 1170 char *device_name, *opts, *orig, *p; in btrfs_parse_device_options() local 1183 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_device_options() 1184 if (!opts) in btrfs_parse_device_options() 1186 orig = opts; in btrfs_parse_device_options() 1188 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_device_options() [all …]
|
/fs/incfs/ |
D | vfs.c | 223 static void free_options(struct mount_options *opts) in free_options() argument 225 kfree(opts->sysfs_name); in free_options() 226 opts->sysfs_name = NULL; in free_options() 229 static int parse_options(struct mount_options *opts, char *str) in parse_options() argument 235 if (opts == NULL) in parse_options() 238 *opts = (struct mount_options) { in parse_options() 262 opts->read_timeout_ms = value; in parse_options() 267 opts->readahead_pages = value; in parse_options() 272 opts->read_log_pages = value; in parse_options() 277 opts->read_log_wakeup_count = value; in parse_options() [all …]
|
/fs/9p/ |
D | v9fs.c | 161 static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) in v9fs_parse_options() argument 179 if (!opts) in v9fs_parse_options() 182 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
|