/fs/ncpfs/ |
H A D | getopt.c | 18 * @opts: an array of &struct option entries controlling parser operations 25 * Returns opts->val if a matching entry in the 'opts' array is found, 28 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts, argument 45 for (; opts->name; opts++) { 46 if (!strcmp(opts->name, token)) { 48 if (opts->has_arg & OPT_NOPARAM) { 49 return opts->val; 55 if (opts [all...] |
/fs/hfsplus/ |
H A D | options.c | 48 void hfsplus_fill_defaults(struct hfsplus_sb_info *opts) argument 50 if (!opts) 53 opts->creator = HFSPLUS_DEF_CR_TYPE; 54 opts->type = HFSPLUS_DEF_CR_TYPE; 55 opts->umask = current_umask(); 56 opts->uid = current_uid(); 57 opts->gid = current_gid(); 58 opts->part = -1; 59 opts->session = -1;
|
/fs/squashfs/ |
H A D | xz_wrapper.c | 55 struct comp_opts *opts; local 58 opts = kmalloc(sizeof(*opts), GFP_KERNEL); 59 if (opts == NULL) { 71 opts->dict_size = le32_to_cpu(comp_opts->dictionary_size); 74 n = ffs(opts->dict_size) - 1; 75 if (opts->dict_size != (1 << n) && opts->dict_size != (1 << n) + 82 opts->dict_size = max_t(int, msblk->block_size, 85 return opts; [all...] |
/fs/fat/ |
H A D | misc.c | 25 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; local 37 if (opts->errors == FAT_ERRORS_PANIC) 39 else if (opts->errors == FAT_ERRORS_RO && !(sb->s_flags & MS_RDONLY)) {
|
H A D | namei_msdos.c | 20 unsigned char *res, struct fat_mount_options *opts) 23 * the resulting name, opts->name_check is either (r)elaxed, 24 * (n)ormal or (s)trict, opts->dotsOK allows dots at the 33 if (opts->dotsOK) { 48 if (opts->name_check != 'r' && strchr(bad_chars, c)) 50 if (opts->name_check == 's' && strchr(bad_if_strict, c)) 52 if (c >= 'A' && c <= 'Z' && opts->name_check == 's') 69 *walk = (!opts->nocase && c >= 'a' && c <= 'z') ? c - 32 : c; 73 if (opts->name_check == 's' && len && c != '.') { 87 if (opts 19 msdos_format_name(const unsigned char *name, int len, unsigned char *res, struct fat_mount_options *opts) argument [all...] |
H A D | namei_vfat.c | 319 struct fat_mount_options *opts = &MSDOS_SB(dir->i_sb)->options; local 439 if (opts->shortname & VFAT_SFN_CREATE_WIN95) { 441 } else if (opts->shortname & VFAT_SFN_CREATE_WINNT) { 456 if (opts->numtail == 0) 586 struct fat_mount_options *opts = &sbi->options; local 604 opts->unicode_xlate, opts->utf8, sbi->nls_io);
|
H A D | inode.c | 835 struct fat_mount_options *opts = &sbi->options; local 836 int isvfat = opts->isvfat; 838 if (!uid_eq(opts->fs_uid, GLOBAL_ROOT_UID)) 840 from_kuid_munged(&init_user_ns, opts->fs_uid)); 841 if (!gid_eq(opts->fs_gid, GLOBAL_ROOT_GID)) 843 from_kgid_munged(&init_user_ns, opts->fs_gid)); 844 seq_printf(m, ",fmask=%04o", opts->fs_fmask); 845 seq_printf(m, ",dmask=%04o", opts->fs_dmask); 846 if (opts->allow_utime) 847 seq_printf(m, ",allow_utime=%04o", opts 1019 parse_options(struct super_block *sb, char *options, int is_vfat, int silent, int *debug, struct fat_mount_options *opts) argument [all...] |
/fs/jffs2/ |
H A D | nodemgmt.c | 27 struct jffs2_mount_opts *opts = &c->mount_opts; local 33 if (avail < 2 * opts->rp_size) 37 opts->rp_size, c->dirty_size, c->free_size, 41 if (avail > opts->rp_size)
|
H A D | super.c | 89 struct jffs2_mount_opts *opts = &c->mount_opts; local 91 if (opts->override_compr) 92 seq_printf(s, ",compr=%s", jffs2_compr_name(opts->compr)); 93 if (opts->rp_size) 94 seq_printf(s, ",rp_size=%u", opts->rp_size / 1024);
|
/fs/ramfs/ |
H A D | inode.c | 184 static int ramfs_parse_options(char *data, struct ramfs_mount_opts *opts) argument 191 opts->mode = RAMFS_DEFAULT_MODE; 202 opts->mode = option & S_IALLUGO;
|
/fs/9p/ |
H A D | v9fs.c | 113 static int v9fs_parse_options(struct v9fs_session_info *v9ses, char *opts) argument 130 if (!opts) 133 tmp_options = kstrdup(opts, GFP_KERNEL);
|
/fs/debugfs/ |
H A D | inode.c | 153 static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts) argument 162 opts->mode = DEBUGFS_DEFAULT_MODE; 176 opts->uid = uid; 184 opts->gid = gid; 189 opts->mode = option & S_IALLUGO; 205 struct debugfs_mount_opts *opts = &fsi->mount_opts; local 208 inode->i_mode |= opts->mode; 210 inode->i_uid = opts->uid; 211 inode->i_gid = opts->gid; 235 struct debugfs_mount_opts *opts local [all...] |
/fs/befs/ |
H A D | linuxvfs.c | 678 parse_options(char *options, befs_mount_options * opts) argument 687 opts->uid = GLOBAL_ROOT_UID; 688 opts->gid = GLOBAL_ROOT_GID; 689 opts->use_uid = 0; 690 opts->use_gid = 0; 691 opts->iocharset = NULL; 692 opts->debug = 0; 715 opts->uid = uid; 716 opts->use_uid = 1; 729 opts [all...] |
/fs/devpts/ |
H A D | inode.c | 153 * Set @opts to mount options specified in @data. If an option is not 160 static int parse_mount_options(char *data, int op, struct pts_mount_opts *opts) argument 166 opts->setuid = 0; 167 opts->setgid = 0; 168 opts->uid = GLOBAL_ROOT_UID; 169 opts->gid = GLOBAL_ROOT_GID; 170 opts->mode = DEVPTS_DEFAULT_MODE; 171 opts->ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; 172 opts->max = NR_UNIX98_PTY_MAX; 176 opts 247 struct pts_mount_opts *opts = &fsi->mount_opts; local 316 struct pts_mount_opts *opts = &fsi->mount_opts; local 335 struct pts_mount_opts *opts = &fsi->mount_opts; local 448 struct pts_mount_opts opts; local 589 struct pts_mount_opts *opts = &fsi->mount_opts; local [all...] |
/fs/exofs/ |
H A D | super.c | 81 static int parse_options(char *options, struct exofs_mountopt *opts) argument 90 memset(opts, 0, sizeof(*opts)); 91 opts->timeout = BLK_DEFAULT_SG_TIMEOUT; 103 opts->dev_name = match_strdup(&args[0]); 104 if (unlikely(!opts->dev_name)) { 108 opts->is_osdname = true; 113 opts->pid = simple_strtoull(str, NULL, 0); 114 if (opts->pid < EXOFS_MIN_PID) { 128 opts 708 struct exofs_mountopt *opts = data; local 867 struct exofs_mountopt opts; local [all...] |
/fs/hpfs/ |
H A D | super.c | 289 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, argument 296 if (!opts) 299 /*pr_info("Parsing opts: '%s'\n",opts);*/ 301 while ((p = strsep(&opts, ",")) != NULL) {
|
/fs/btrfs/ |
H A D | super.c | 772 char *device_name, *opts, *orig, *p; local 783 opts = kstrdup(options, GFP_KERNEL); 784 if (!opts) 786 orig = opts; 788 while ((p = strsep(&opts, ",")) != NULL) {
|
/fs/ocfs2/ |
H A D | super.c | 1526 unsigned long opts = osb->s_mount_opt; local 1529 if (opts & (OCFS2_MOUNT_HB_LOCAL | OCFS2_MOUNT_HB_GLOBAL)) { 1531 if (opts & OCFS2_MOUNT_HB_LOCAL) 1538 if (opts & OCFS2_MOUNT_NOINTR) 1541 if (opts & OCFS2_MOUNT_DATA_WRITEBACK) 1546 if (opts & OCFS2_MOUNT_BARRIER) 1549 if (opts & OCFS2_MOUNT_ERRORS_PANIC) 1567 if (opts & OCFS2_MOUNT_LOCALFLOCKS) 1573 if (opts & OCFS2_MOUNT_USRQUOTA) 1575 if (opts [all...] |
/fs/reiserfs/ |
H A D | super.c | 676 long opts = REISERFS_SB(s)->s_mount_opt; local 678 if (opts & (1 << REISERFS_LARGETAIL)) 680 else if (!(opts & (1 << REISERFS_SMALLTAIL))) 684 if (!(opts & (1 << REISERFS_BARRIER_FLUSH))) 688 if (opts & (1 << REISERFS_ERROR_CONTINUE)) 690 else if (opts & (1 << REISERFS_ERROR_PANIC)) 694 if (opts & (1 << REISERFS_DATA_LOG)) 696 else if (opts & (1 << REISERFS_DATA_WRITEBACK)) 700 if (opts & (1 << REISERFS_ATTRS)) 703 if (opts 921 reiserfs_getopt(struct super_block *s, char **cur, opt_desc_t * opts, char **opt_arg, unsigned long *bit_flags) argument 1075 opt_desc_t opts[] = { local [all...] |