/fs/fat/ |
D | inode.c | 770 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local 771 int isvfat = opts->isvfat; in fat_show_options() 773 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options() 775 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options() 776 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options() 778 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options() 779 seq_printf(m, ",fmask=%04o", opts->fs_fmask); in fat_show_options() 780 seq_printf(m, ",dmask=%04o", opts->fs_dmask); in fat_show_options() 781 if (opts->allow_utime) in fat_show_options() 782 seq_printf(m, ",allow_utime=%04o", opts->allow_utime); 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 | 25 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error() local 37 if (opts->errors == FAT_ERRORS_PANIC) in __fat_fs_error() 39 else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) { in __fat_fs_error()
|
D | namei_vfat.c | 323 struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; in vfat_create_shortname() local 443 if (opts->shortname & VFAT_SFN_CREATE_WIN95) { in vfat_create_shortname() 445 } else if (opts->shortname & VFAT_SFN_CREATE_WINNT) { in vfat_create_shortname() 460 if (opts->numtail == 0) in vfat_create_shortname() 590 struct fat_mount_options *opts = &sbi->options; in vfat_build_slots() local 608 opts->unicode_xlate, opts->utf8, sbi->nls_io); in vfat_build_slots()
|
/fs/devpts/ |
D | inode.c | 158 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument 164 opts->setuid = 0; in parse_mount_options() 165 opts->setgid = 0; in parse_mount_options() 166 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 167 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options() 168 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options() 169 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options() 170 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options() 174 opts->newinstance = 0; in parse_mount_options() 192 opts->uid = uid; in parse_mount_options() [all …]
|
/fs/ncpfs/ |
D | getopt.c | 26 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts, in ncp_getopt() argument 43 for (; opts->name; opts++) { in ncp_getopt() 44 if (!strcmp(opts->name, token)) { in ncp_getopt() 46 if (opts->has_arg & OPT_NOPARAM) { in ncp_getopt() 47 return opts->val; in ncp_getopt() 53 if (opts->has_arg & OPT_INT) { in ncp_getopt() 58 return opts->val; in ncp_getopt() 64 if (opts->has_arg & OPT_STRING) { in ncp_getopt() 65 return opts->val; in ncp_getopt()
|
D | getopt.h | 13 extern int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
|
/fs/squashfs/ |
D | xz_wrapper.c | 55 struct comp_opts *opts; in squashfs_xz_comp_opts() local 58 opts = kmalloc(sizeof(*opts), GFP_ATOMIC); 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()
|
/fs/sdcardfs/ |
D | main.c | 54 struct sdcardfs_mount_options *opts) in parse_options() argument 61 opts->fs_low_uid = AID_MEDIA_RW; in parse_options() 62 opts->fs_low_gid = AID_MEDIA_RW; in parse_options() 64 opts->multiuser = false; in parse_options() 65 opts->fs_user_id = 0; in parse_options() 68 opts->reserved_mb = 0; in parse_options() 70 opts->gid_derivation = false; in parse_options() 92 opts->fs_low_uid = option; in parse_options() 97 opts->fs_low_gid = option; in parse_options() 107 opts->fs_user_id = option; in parse_options() [all …]
|
D | super.c | 290 struct sdcardfs_mount_options *opts = &sbi->options; in sdcardfs_show_options() local 293 if (opts->fs_low_uid != 0) in sdcardfs_show_options() 294 seq_printf(m, ",fsuid=%u", opts->fs_low_uid); in sdcardfs_show_options() 295 if (opts->fs_low_gid != 0) in sdcardfs_show_options() 296 seq_printf(m, ",fsgid=%u", opts->fs_low_gid); in sdcardfs_show_options() 299 if (opts->multiuser) in sdcardfs_show_options() 303 if (opts->fs_user_id) in sdcardfs_show_options() 304 seq_printf(m, ",userid=%u", opts->fs_user_id); in sdcardfs_show_options() 305 if (opts->gid_derivation) in sdcardfs_show_options() 307 if (opts->reserved_mb != 0) in sdcardfs_show_options() [all …]
|
D | sdcardfs.h | 417 struct sdcardfs_vfsmount_options *opts = mnt->data; in get_gid() local 419 if (opts->gid == AID_SDCARD_RW) in get_gid() 428 return multiuser_get_uid(data->userid, opts->gid); in get_gid() 437 struct sdcardfs_vfsmount_options *opts = mnt->data; in get_mode() local 438 int visible_mode = 0775 & ~opts->mask; in get_mode() 451 if (opts->gid == AID_SDCARD_RW) in get_mode()
|
/fs/hfsplus/ |
D | options.c | 48 void hfsplus_fill_defaults(struct hfsplus_sb_info *opts) in hfsplus_fill_defaults() argument 50 if (!opts) in hfsplus_fill_defaults() 53 opts->creator = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults() 54 opts->type = HFSPLUS_DEF_CR_TYPE; in hfsplus_fill_defaults() 55 opts->umask = current_umask(); in hfsplus_fill_defaults() 56 opts->uid = current_uid(); in hfsplus_fill_defaults() 57 opts->gid = current_gid(); in hfsplus_fill_defaults() 58 opts->part = -1; in hfsplus_fill_defaults() 59 opts->session = -1; in hfsplus_fill_defaults()
|
/fs/exofs/ |
D | super.c | 81 static int parse_options(char *options, struct exofs_mountopt *opts) in parse_options() argument 90 memset(opts, 0, sizeof(*opts)); in parse_options() 91 opts->timeout = BLK_DEFAULT_SG_TIMEOUT; in parse_options() 103 opts->dev_name = match_strdup(&args[0]); in parse_options() 104 if (unlikely(!opts->dev_name)) { in parse_options() 108 opts->is_osdname = true; in parse_options() 113 opts->pid = simple_strtoull(str, NULL, 0); in parse_options() 114 if (opts->pid < EXOFS_MIN_PID) { in parse_options() 128 opts->timeout = option * HZ; in parse_options() 708 struct exofs_mountopt *opts = data; in exofs_fill_super() local [all …]
|
/fs/debugfs/ |
D | inode.c | 153 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) in debugfs_parse_options() argument 162 opts->mode = DEBUGFS_DEFAULT_MODE; in debugfs_parse_options() 176 opts->uid = uid; in debugfs_parse_options() 184 opts->gid = gid; in debugfs_parse_options() 189 opts->mode = option & S_IALLUGO; in debugfs_parse_options() 205 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_apply_options() local 208 inode->i_mode |= opts->mode; in debugfs_apply_options() 210 inode->i_uid = opts->uid; in debugfs_apply_options() 211 inode->i_gid = opts->gid; in debugfs_apply_options() 235 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_show_options() local [all …]
|
/fs/befs/ |
D | linuxvfs.c | 680 parse_options(char *options, befs_mount_options * opts) in parse_options() argument 689 opts->uid = GLOBAL_ROOT_UID; in parse_options() 690 opts->gid = GLOBAL_ROOT_GID; in parse_options() 691 opts->use_uid = 0; in parse_options() 692 opts->use_gid = 0; in parse_options() 693 opts->iocharset = NULL; in parse_options() 694 opts->debug = 0; in parse_options() 717 opts->uid = uid; in parse_options() 718 opts->use_uid = 1; in parse_options() 731 opts->gid = gid; in parse_options() [all …]
|
/fs/reiserfs/ |
D | super.c | 655 long opts = REISERFS_SB(s)->s_mount_opt; in reiserfs_show_options() local 657 if (opts & (1 << REISERFS_LARGETAIL)) in reiserfs_show_options() 659 else if (!(opts & (1 << REISERFS_SMALLTAIL))) in reiserfs_show_options() 663 if (!(opts & (1 << REISERFS_BARRIER_FLUSH))) in reiserfs_show_options() 667 if (opts & (1 << REISERFS_ERROR_CONTINUE)) in reiserfs_show_options() 669 else if (opts & (1 << REISERFS_ERROR_PANIC)) in reiserfs_show_options() 673 if (opts & (1 << REISERFS_DATA_LOG)) in reiserfs_show_options() 675 else if (opts & (1 << REISERFS_DATA_WRITEBACK)) in reiserfs_show_options() 679 if (opts & (1 << REISERFS_ATTRS)) in reiserfs_show_options() 682 if (opts & (1 << REISERFS_XATTRS_USER)) in reiserfs_show_options() [all …]
|
/fs/jffs2/ |
D | super.c | 89 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_show_options() local 91 if (opts->override_compr) in jffs2_show_options() 92 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); in jffs2_show_options() 93 if (opts->rp_size) in jffs2_show_options() 94 seq_printf(s, ",rp_size=%u", opts->rp_size / 1024); in jffs2_show_options()
|
D | nodemgmt.c | 27 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()
|
/fs/ramfs/ |
D | inode.c | 177 static int ramfs_parse_options(char *data, struct ramfs_mount_opts *opts) in ramfs_parse_options() argument 184 opts->mode = RAMFS_DEFAULT_MODE; in ramfs_parse_options() 195 opts->mode = option & S_IALLUGO; in ramfs_parse_options()
|
/fs/ocfs2/ |
D | super.c | 1539 unsigned long opts = osb->s_mount_opt; in ocfs2_show_options() local 1542 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { in ocfs2_show_options() 1544 if (opts & OCFS2_MOUNT_HB_LOCAL) in ocfs2_show_options() 1551 if (opts & OCFS2_MOUNT_NOINTR) in ocfs2_show_options() 1554 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_show_options() 1559 if (opts & OCFS2_MOUNT_BARRIER) in ocfs2_show_options() 1562 if (opts & OCFS2_MOUNT_ERRORS_PANIC) in ocfs2_show_options() 1580 if (opts & OCFS2_MOUNT_LOCALFLOCKS) in ocfs2_show_options() 1586 if (opts & OCFS2_MOUNT_USRQUOTA) in ocfs2_show_options() 1588 if (opts & OCFS2_MOUNT_GRPQUOTA) in ocfs2_show_options() [all …]
|
/fs/9p/ |
D | v9fs.c | 109 static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) in v9fs_parse_options() argument 126 if (!opts) in v9fs_parse_options() 129 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
|
/fs/hpfs/ |
D | super.c | 259 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 266 if (!opts) in parse_opts() 271 while ((p = strsep(&opts, ",")) != NULL) { in parse_opts()
|
/fs/btrfs/ |
D | super.c | 654 char *device_name, *opts, *orig, *p; in btrfs_parse_early_options() local 665 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_early_options() 666 if (!opts) in btrfs_parse_early_options() 668 orig = opts; in btrfs_parse_early_options() 670 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_early_options()
|