Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 84) sorted by relevance

1234

/fs/afs/
Dmntpt.c145 char *devname, *options; in afs_mntpt_do_automount() local
158 options = (char *) get_zeroed_page(GFP_KERNEL); in afs_mntpt_do_automount()
159 if (!options) in afs_mntpt_do_automount()
212 memcpy(options, "cell=", 5); in afs_mntpt_do_automount()
213 strcpy(options + 5, super->volume->cell->name); in afs_mntpt_do_automount()
215 strcat(options, ",rwpath"); in afs_mntpt_do_automount()
218 _debug("--- attempting mount %s -o %s ---", devname, options); in afs_mntpt_do_automount()
219 mnt = vfs_kern_mount(&afs_fs_type, 0, devname, options); in afs_mntpt_do_automount()
223 free_page((unsigned long) options); in afs_mntpt_do_automount()
230 free_page((unsigned long) options); in afs_mntpt_do_automount()
Dsuper.c144 char *options, const char **devname) in afs_parse_options() argument
151 _enter("%s", options); in afs_parse_options()
153 options[PAGE_SIZE - 1] = 0; in afs_parse_options()
155 while ((p = strsep(&options, ","))) { in afs_parse_options()
355 int flags, const char *dev_name, void *options) in afs_mount() argument
361 char *new_opts = kstrdup(options, GFP_KERNEL); in afs_mount()
365 _enter(",,%s,%p", dev_name, options); in afs_mount()
374 if (options) { in afs_mount()
375 ret = afs_parse_options(&params, options, &dev_name); in afs_mount()
/fs/sdcardfs/
Dmain.c52 static int parse_options(struct super_block *sb, char *options, int silent, in parse_options() argument
74 if (!options) in parse_options()
77 while ((p = strsep(&options, ",")) != NULL) { in parse_options()
144 int parse_options_remount(struct super_block *sb, char *options, int silent, in parse_options_remount() argument
152 if (!options) in parse_options_remount()
155 while ((p = strsep(&options, ",")) != NULL) { in parse_options_remount()
280 err = parse_options(sb, raw_data, silent, &debug, mnt_opt, &sb_info->options); in sdcardfs_read_super()
335 if (sb_info->options.multiuser) { in sdcardfs_read_super()
337 sb_info->options.fs_user_id, AID_ROOT, in sdcardfs_read_super()
342 sb_info->options.fs_user_id, AID_ROOT, in sdcardfs_read_super()
Dsuper.c81 if (sbi->options.reserved_mb) { in sdcardfs_statfs()
88 min_blocks = ((sbi->options.reserved_mb * 1024 * 1024)/buf->f_bsize); in sdcardfs_statfs()
110 static int sdcardfs_remount_fs(struct super_block *sb, int *flags, char *options) in sdcardfs_remount_fs() argument
134 int *flags, char *options) in sdcardfs_remount_fs2() argument
147 pr_info("Remount options were %s for vfsmnt %p.\n", options, mnt); in sdcardfs_remount_fs2()
148 err = parse_options_remount(sb, options, *flags & ~MS_SILENT, mnt->data); in sdcardfs_remount_fs2()
290 struct sdcardfs_mount_options *opts = &sbi->options; in sdcardfs_show_options()
Dderived_perm.c174 uid_t uid = sbi->options.fs_low_uid; in fixup_lower_ownership()
175 gid_t gid = sbi->options.fs_low_gid; in fixup_lower_ownership()
178 if (!sbi->options.gid_derivation) in fixup_lower_ownership()
358 if (!(sbi->options.multiuser == false in need_graft_path()
419 if (sbi->options.multiuser) { in is_base_obbpath()
Dsdcardfs.h230 extern int parse_options_remount(struct super_block *sb, char *options, int silent,
240 struct sdcardfs_mount_options options; member
594 if (sbi->options.reserved_mb) { in check_min_free_space()
619 if ((avail - size) > (sbi->options.reserved_mb * 1024 * 1024)) in check_min_free_space()
/fs/proc/
Droot.c51 static int proc_parse_options(char *options, struct pid_namespace *pid) in proc_parse_options() argument
57 if (!options) in proc_parse_options()
60 while ((p = strsep(&options, ",")) != NULL) { in proc_parse_options()
106 char *options; in proc_mount() local
110 options = NULL; in proc_mount()
113 options = data; in proc_mount()
123 if (!proc_parse_options(options, ns)) { in proc_mount()
/fs/fat/
Dfile.c79 if (sbi->options.sys_immutable && in fat_ioctl_set_attributes()
101 if (sbi->options.sys_immutable) { in fat_ioctl_set_attributes()
144 MSDOS_SB(inode->i_sb)->options.flush) { in fat_file_release()
310 if (MSDOS_SB(inode->i_sb)->options.nfs == FAT_NFS_NOSTALE_RO) { in fat_getattr()
329 mask = sbi->options.fs_fmask; in fat_sanitize_mode()
331 mask = sbi->options.fs_dmask; in fat_sanitize_mode()
358 umode_t allow_utime = sbi->options.allow_utime; in fat_allow_set_time()
392 if (sbi->options.quiet) in fat_setattr()
415 (!uid_eq(attr->ia_uid, sbi->options.fs_uid))) || in fat_setattr()
417 (!gid_eq(attr->ia_gid, sbi->options.fs_gid))) || in fat_setattr()
[all …]
Dinode.c313 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_attach()
332 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_detach()
394 inode->i_uid = sbi->options.fs_uid; in fat_fill_inode()
395 inode->i_gid = sbi->options.fs_gid; in fat_fill_inode()
416 ((sbi->options.showexec && !is_exec(de->name + 8)) in fat_fill_inode()
428 if (sbi->options.sys_immutable) in fat_fill_inode()
437 if (sbi->options.isvfat) { in fat_fill_inode()
449 if (sbi->options.nfs == FAT_NFS_NOSTALE_RO) in fat_lock_build_inode()
455 if (sbi->options.nfs == FAT_NFS_NOSTALE_RO) in fat_unlock_build_inode()
563 if (sbi->options.iocharset != fat_default_iocharset) in fat_put_super()
[all …]
Dnamei_msdos.c126 err = msdos_format_name(name, len, msdos_name, &sbi->options); in msdos_find()
131 if (!err && sbi->options.dotsOK) { in msdos_find()
154 struct fat_mount_options *options = &MSDOS_SB(dentry->d_sb)->options; in msdos_hash() local
158 error = msdos_format_name(qstr->name, qstr->len, msdos_name, options); in msdos_hash()
172 struct fat_mount_options *options = &MSDOS_SB(parent->d_sb)->options; in msdos_cmp() local
176 error = msdos_format_name(name->name, name->len, a_msdos_name, options); in msdos_cmp()
179 error = msdos_format_name(str, len, b_msdos_name, options); in msdos_cmp()
279 msdos_name, &MSDOS_SB(sb)->options); in msdos_create()
360 msdos_name, &MSDOS_SB(sb)->options); in msdos_mkdir()
613 &MSDOS_SB(old_dir->i_sb)->options); in msdos_rename()
[all …]
Dmisc.c25 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error()
219 if (!sbi->options.tz_set) in fat_time_fat2unix()
222 second -= sbi->options.time_offset * SECS_PER_MIN; in fat_time_fat2unix()
239 (sbi->options.tz_set ? sbi->options.time_offset : in fat_time_unix2fat()
Dfat.h83 struct fat_mount_options options; member
163 if (!sbi->options.rodir) in fat_mode_can_hold_ro()
165 mask = ~sbi->options.fs_dmask; in fat_mode_can_hold_ro()
167 mask = ~sbi->options.fs_fmask; in fat_mode_can_hold_ro()
178 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode()
182 return (mode & ~sbi->options.fs_dmask) | S_IFDIR; in fat_make_mode()
184 return (mode & ~sbi->options.fs_fmask) | S_IFREG; in fat_make_mode()
Dnfs.c55 if (MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) in fat_ilookup()
74 if (inode == NULL && MSDOS_SB(sb)->options.nfs == FAT_NFS_NOSTALE_RO) { in __fat_nfs_get_inode()
282 if (!parent_inode && sbi->options.nfs == FAT_NFS_NOSTALE_RO) in fat_get_parent()
Ddir.c148 int uni_xlate = MSDOS_SB(sb)->options.unicode_xlate; in uni16_to_x8()
189 if (sbi->options.utf8) in fat_uni_to_x8()
265 if (sbi->options.name_check != 's') in fat_name_match()
359 int isvfat = sbi->options.isvfat; in fat_parse_short()
360 int nocase = sbi->options.nocase; in fat_parse_short()
361 unsigned short opt_shortname = sbi->options.shortname; in fat_parse_short()
453 if (sbi->options.isvfat) { in fat_parse_short()
565 int isvfat = sbi->options.isvfat; in __fat_readdir()
645 short_len = fat_parse_short(sb, de, bufname, sbi->options.dotsOK); in __fat_readdir()
1169 if (sbi->options.isvfat) { in fat_alloc_new_dir()
/fs/nfs/
Dsuper.c327 static int nfs4_validate_mount_data(void *options,
685 if (nfss->options & NFS_OPTION_FSCACHE) in nfs_show_mount_options()
688 if (nfss->options & NFS_OPTION_MIGRATION) in nfs_show_mount_options()
876 if (nfss->options & NFS_OPTION_FSCACHE) { in nfs_show_stats()
1249 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1254 mnt->options &= ~NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1259 mnt->options |= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1262 mnt->options &= NFS_OPTION_MIGRATION; in nfs_parse_mount_options()
1499 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options()
1556 if (mnt->options & NFS_OPTION_MIGRATION && in nfs_parse_mount_options()
[all …]
/fs/hostfs/
Dhostfs_kern.c54 static int __init hostfs_args(char *options, int *add) in hostfs_args() argument
58 ptr = strchr(options, ','); in hostfs_args()
61 if (*options != '\0') in hostfs_args()
62 root_ino = options; in hostfs_args()
64 options = ptr; in hostfs_args()
65 while (options) { in hostfs_args()
66 ptr = strchr(options, ','); in hostfs_args()
69 if (*options != '\0') { in hostfs_args()
70 if (!strcmp(options, "append")) in hostfs_args()
73 options); in hostfs_args()
[all …]
/fs/ncpfs/
Dgetopt.c26 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts, in ncp_getopt() argument
33 if ((token = strsep(options, ",")) == NULL) in ncp_getopt()
Dinode.c379 static int ncp_parse_options(struct ncp_mount_data_kernel *data, char *options) { in ncp_parse_options() argument
400 while ((optval = ncp_getopt("ncpfs", &options, ncp_opts, NULL, &optarg, &optint)) != 0) { in ncp_parse_options()
473 int options; in ncp_fill_super() local
684 NCP_DEFAULT_OPTIONS, &(server->buffer_size), &options) == 0) in ncp_fill_super()
686 if (options != NCP_DEFAULT_OPTIONS) in ncp_fill_super()
690 options & 2, in ncp_fill_super()
691 &(server->buffer_size), &options) != 0) in ncp_fill_super()
698 if (options & 2) in ncp_fill_super()
/fs/ext2/
Dsuper.c375 char *options = (char *) *data; in get_sb_block() local
377 if (!options || strncmp(options, "sb=", 3) != 0) in get_sb_block()
379 options += 3; in get_sb_block()
380 sb_block = simple_strtoul(options, &options, 0); in get_sb_block()
381 if (*options && *options != ',') { in get_sb_block()
386 if (*options == ',') in get_sb_block()
387 options++; in get_sb_block()
388 *data = (void *) options; in get_sb_block()
435 static int parse_options(char *options, struct super_block *sb) in parse_options() argument
444 if (!options) in parse_options()
[all …]
/fs/btrfs/
Dsuper.c370 int btrfs_parse_options(struct btrfs_root *root, char *options) in btrfs_parse_options() argument
385 if (!options) in btrfs_parse_options()
392 options = kstrdup(options, GFP_NOFS); in btrfs_parse_options()
393 if (!options) in btrfs_parse_options()
396 orig = options; in btrfs_parse_options()
398 while ((p = strsep(&options, ",")) != NULL) { in btrfs_parse_options()
649 static int btrfs_parse_early_options(const char *options, fmode_t flags, in btrfs_parse_early_options() argument
658 if (!options) in btrfs_parse_early_options()
665 opts = kstrdup(options, GFP_KERNEL); in btrfs_parse_early_options()
/fs/autofs4/
Dinode.c131 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument
147 if (!options) in parse_options()
150 while ((p = strsep(&options, ",")) != NULL) { in parse_options()
/fs/
DKconfig177 Say Y here to get to see options for various miscellaneous
183 If you say N, all options in this submenu will be skipped and
226 Say Y here to get to see options for network filesystems and
232 If you say N, all options in this submenu will be skipped and
/fs/nilfs2/
Dsuper.c709 static int parse_options(char *options, struct super_block *sb, int is_remount) in parse_options() argument
715 if (!options) in parse_options()
718 while ((p = strsep(&options, ",")) != NULL) { in parse_options()
1205 char *p, *options = data; in nilfs_identify() local
1211 p = strsep(&options, ","); in nilfs_identify()
1233 if (!options) in nilfs_identify()
1235 BUG_ON(options == data); in nilfs_identify()
1236 *(options - 1) = ','; in nilfs_identify()
/fs/ocfs2/
Dsuper.c106 static int ocfs2_parse_options(struct super_block *sb, char *options,
110 struct mount_options *options);
1274 struct mount_options *options) in ocfs2_check_set_options() argument
1276 if (options->mount_opt & OCFS2_MOUNT_USRQUOTA && in ocfs2_check_set_options()
1283 if (options->mount_opt & OCFS2_MOUNT_GRPQUOTA && in ocfs2_check_set_options()
1290 if (options->mount_opt & OCFS2_MOUNT_POSIX_ACL && in ocfs2_check_set_options()
1297 if (!(options->mount_opt & (OCFS2_MOUNT_POSIX_ACL | in ocfs2_check_set_options()
1300 options->mount_opt |= OCFS2_MOUNT_POSIX_ACL; in ocfs2_check_set_options()
1302 options->mount_opt |= OCFS2_MOUNT_NO_POSIX_ACL; in ocfs2_check_set_options()
1308 char *options, in ocfs2_parse_options() argument
[all …]
/fs/pstore/
Dinode.c223 static void parse_options(char *options) in parse_options() argument
229 if (!options) in parse_options()
232 while ((p = strsep(&options, ",")) != NULL) { in parse_options()

1234