/fs/fat/ |
D | inode.c | 699 static void fat_reset_iocharset(struct fat_mount_options *opts) in fat_reset_iocharset() argument 701 if (opts->iocharset != fat_default_iocharset) { in fat_reset_iocharset() 703 kfree(opts->iocharset); in fat_reset_iocharset() 704 opts->iocharset = fat_default_iocharset; in fat_reset_iocharset() 936 struct fat_mount_options *opts = &sbi->options; in fat_show_options() local 937 int isvfat = opts->isvfat; in fat_show_options() 939 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) in fat_show_options() 941 from_kuid_munged(&init_user_ns, opts->fs_uid)); in fat_show_options() 942 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) in fat_show_options() 944 from_kgid_munged(&init_user_ns, opts->fs_gid)); in fat_show_options() [all …]
|
D | namei_msdos.c | 18 unsigned char *res, struct fat_mount_options *opts) in msdos_format_name() argument 31 if (opts->dotsOK) { in msdos_format_name() 46 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name() 48 if (opts->name_check == 's' && strchr(bad_if_strict, c)) in msdos_format_name() 50 if (c >= 'A' && c <= 'Z' && opts->name_check == 's') in msdos_format_name() 67 *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c - 32 : c; in msdos_format_name() 71 if (opts->name_check == 's' && len && c != '.') { in msdos_format_name() 85 if (opts->name_check != 'r' && strchr(bad_chars, c)) in msdos_format_name() 87 if (opts->name_check == 's' && in msdos_format_name() 93 if (opts->name_check == 's') in msdos_format_name() [all …]
|
D | misc.c | 21 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()
|
D | namei_vfat.c | 330 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()
|
/fs/devpts/ |
D | inode.c | 233 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) in parse_mount_options() argument 239 opts->setuid = 0; in parse_mount_options() 240 opts->setgid = 0; in parse_mount_options() 241 opts->uid = GLOBAL_ROOT_UID; in parse_mount_options() 242 opts->gid = GLOBAL_ROOT_GID; in parse_mount_options() 243 opts->mode = DEVPTS_DEFAULT_MODE; in parse_mount_options() 244 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; in parse_mount_options() 245 opts->max = NR_UNIX98_PTY_MAX; in parse_mount_options() 251 opts->reserve = in parse_mount_options() 270 opts->uid = uid; in parse_mount_options() [all …]
|
/fs/ncpfs/ |
D | getopt.c | 29 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts, in ncp_getopt() argument 46 for (; opts->name; opts++) { in ncp_getopt() 47 if (!strcmp(opts->name, token)) { in ncp_getopt() 49 if (opts->has_arg & OPT_NOPARAM) { in ncp_getopt() 50 return opts->val; in ncp_getopt() 56 if (opts->has_arg & OPT_INT) { in ncp_getopt() 64 return opts->val; in ncp_getopt() 66 if (opts->has_arg & OPT_STRING) { in ncp_getopt() 67 return opts->val; in ncp_getopt()
|
D | getopt.h | 14 extern int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts,
|
/fs/sdcardfs/ |
D | main.c | 60 struct sdcardfs_mount_options *opts) in parse_options() argument 67 opts->fs_low_uid = AID_MEDIA_RW; in parse_options() 68 opts->fs_low_gid = AID_MEDIA_RW; in parse_options() 70 opts->multiuser = false; in parse_options() 71 opts->fs_user_id = 0; in parse_options() 74 opts->reserved_mb = 0; in parse_options() 76 opts->gid_derivation = false; in parse_options() 77 opts->default_normal = false; in parse_options() 78 opts->nocache = false; in parse_options() 100 opts->fs_low_uid = option; in parse_options() [all …]
|
D | super.c | 293 struct sdcardfs_mount_options *opts = &sbi->options; in sdcardfs_show_options() local 296 if (opts->fs_low_uid != 0) in sdcardfs_show_options() 297 seq_printf(m, ",fsuid=%u", opts->fs_low_uid); in sdcardfs_show_options() 298 if (opts->fs_low_gid != 0) in sdcardfs_show_options() 299 seq_printf(m, ",fsgid=%u", opts->fs_low_gid); in sdcardfs_show_options() 302 if (opts->multiuser) in sdcardfs_show_options() 306 if (opts->fs_user_id) in sdcardfs_show_options() 307 seq_printf(m, ",userid=%u", opts->fs_user_id); in sdcardfs_show_options() 308 if (opts->gid_derivation) in sdcardfs_show_options() 310 if (opts->default_normal) in sdcardfs_show_options() [all …]
|
D | sdcardfs.h | 429 struct sdcardfs_vfsmount_options *opts = mnt->data; in get_mode() local 430 int visible_mode = 0775 & ~opts->mask; in get_mode() 443 if (opts->gid == AID_SDCARD_RW) in get_mode()
|
/fs/squashfs/ |
D | xz_wrapper.c | 55 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()
|
/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 kfree(opts->dev_name); in parse_options() 104 opts->dev_name = match_strdup(&args[0]); in parse_options() 105 if (unlikely(!opts->dev_name)) { in parse_options() 109 opts->is_osdname = true; in parse_options() 114 opts->pid = simple_strtoull(str, NULL, 0); in parse_options() 115 if (opts->pid < EXOFS_MIN_PID) { in parse_options() 129 opts->timeout = option * HZ; in parse_options() [all …]
|
/fs/tracefs/ |
D | inode.c | 165 static int tracefs_parse_options(char *data, struct tracefs_mount_opts *opts) in tracefs_parse_options() argument 174 opts->mode = TRACEFS_DEFAULT_MODE; in tracefs_parse_options() 188 opts->uid = uid; in tracefs_parse_options() 196 opts->gid = gid; in tracefs_parse_options() 201 opts->mode = option & S_IALLUGO; in tracefs_parse_options() 217 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_apply_options() local 220 inode->i_mode |= opts->mode; in tracefs_apply_options() 222 inode->i_uid = opts->uid; in tracefs_apply_options() 223 inode->i_gid = opts->gid; in tracefs_apply_options() 247 struct tracefs_mount_opts *opts = &fsi->mount_opts; in tracefs_show_options() local [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()
|
D | hfsplus_fs.h | 498 void hfsplus_fill_defaults(struct hfsplus_sb_info *opts);
|
/fs/befs/ |
D | linuxvfs.c | 700 parse_options(char *options, struct befs_mount_options *opts) in parse_options() argument 709 opts->uid = GLOBAL_ROOT_UID; in parse_options() 710 opts->gid = GLOBAL_ROOT_GID; in parse_options() 711 opts->use_uid = 0; in parse_options() 712 opts->use_gid = 0; in parse_options() 713 opts->iocharset = NULL; in parse_options() 714 opts->debug = 0; in parse_options() 738 opts->uid = uid; in parse_options() 739 opts->use_uid = 1; in parse_options() 752 opts->gid = gid; in parse_options() [all …]
|
/fs/debugfs/ |
D | inode.c | 77 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) in debugfs_parse_options() argument 86 opts->mode = DEBUGFS_DEFAULT_MODE; in debugfs_parse_options() 100 opts->uid = uid; in debugfs_parse_options() 108 opts->gid = gid; in debugfs_parse_options() 113 opts->mode = option & S_IALLUGO; in debugfs_parse_options() 129 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_apply_options() local 132 inode->i_mode |= opts->mode; in debugfs_apply_options() 134 inode->i_uid = opts->uid; in debugfs_apply_options() 135 inode->i_gid = opts->gid; in debugfs_apply_options() 159 struct debugfs_mount_opts *opts = &fsi->mount_opts; in debugfs_show_options() local [all …]
|
/fs/jffs2/ |
D | super.c | 92 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()
|
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/reiserfs/ |
D | super.c | 731 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 …]
|
/fs/ramfs/ |
D | inode.c | 188 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()
|
/fs/ocfs2/ |
D | super.c | 1513 unsigned long opts = osb->s_mount_opt; in ocfs2_show_options() local 1516 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { in ocfs2_show_options() 1518 if (opts & OCFS2_MOUNT_HB_LOCAL) in ocfs2_show_options() 1525 if (opts & OCFS2_MOUNT_NOINTR) in ocfs2_show_options() 1528 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) in ocfs2_show_options() 1533 if (opts & OCFS2_MOUNT_BARRIER) in ocfs2_show_options() 1536 if (opts & OCFS2_MOUNT_ERRORS_PANIC) in ocfs2_show_options() 1538 else if (opts & OCFS2_MOUNT_ERRORS_CONT) in ocfs2_show_options() 1556 if (opts & OCFS2_MOUNT_LOCALFLOCKS) in ocfs2_show_options() 1562 if (opts & OCFS2_MOUNT_USRQUOTA) in ocfs2_show_options() [all …]
|
/fs/9p/ |
D | v9fs.c | 177 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()
|
/fs/hpfs/ |
D | super.c | 320 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, in parse_opts() argument 327 if (!opts) in parse_opts() 332 while ((p = strsep(&opts, ",")) != NULL) { in parse_opts()
|
/fs/btrfs/ |
D | super.c | 872 char *device_name, *opts, *orig, *p; in btrfs_parse_early_options() local 883 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_early_options() 884 if (!opts) in btrfs_parse_early_options() 886 orig = opts; in btrfs_parse_early_options() 888 while ((p = strsep(&opts, ",")) != NULL) { in btrfs_parse_early_options()
|