/fs/afs/ |
D | mntpt.c | 131 char *devname, *options; in afs_mntpt_do_automount() local 144 options = (char *) get_zeroed_page(GFP_KERNEL); in afs_mntpt_do_automount() 145 if (!options) in afs_mntpt_do_automount() 198 memcpy(options, "cell=", 5); in afs_mntpt_do_automount() 199 strcpy(options + 5, super->volume->cell->name); in afs_mntpt_do_automount() 201 strcat(options, ",rwpath"); in afs_mntpt_do_automount() 204 _debug("--- attempting mount %s -o %s ---", devname, options); in afs_mntpt_do_automount() 205 mnt = vfs_submount(mntpt, &afs_fs_type, devname, options); in afs_mntpt_do_automount() 209 free_page((unsigned long) options); in afs_mntpt_do_automount() 216 free_page((unsigned long) options); in afs_mntpt_do_automount()
|
D | super.c | 144 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(¶ms, options, &dev_name); in afs_mount()
|
/fs/sdcardfs/ |
D | main.c | 54 static int parse_options(struct super_block *sb, char *options, int silent, in parse_options() argument 77 if (!options) in parse_options() 80 while ((p = strsep(&options, ",")) != NULL) { in parse_options() 150 int parse_options_remount(struct super_block *sb, char *options, int silent, in parse_options_remount() argument 158 if (!options) in parse_options_remount() 161 while ((p = strsep(&options, ",")) != NULL) { in parse_options_remount() 287 err = parse_options(sb, raw_data, silent, &debug, mnt_opt, &sb_info->options); in sdcardfs_read_super() 342 if (sb_info->options.multiuser) { in sdcardfs_read_super() 344 sb_info->options.fs_user_id, AID_ROOT); in sdcardfs_read_super() 348 sb_info->options.fs_user_id, AID_ROOT); in sdcardfs_read_super()
|
D | super.c | 81 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() 293 struct sdcardfs_mount_options *opts = &sbi->options; in sdcardfs_show_options()
|
D | derived_perm.c | 173 uid_t uid = sbi->options.fs_low_uid; in fixup_lower_ownership() 174 gid_t gid = sbi->options.fs_low_gid; in fixup_lower_ownership() 177 if (!sbi->options.gid_derivation) in fixup_lower_ownership() 363 if (!(sbi->options.multiuser == false in need_graft_path() 424 if (sbi->options.multiuser) { in is_base_obbpath()
|
D | sdcardfs.h | 233 extern int parse_options_remount(struct super_block *sb, char *options, int silent, 243 struct sdcardfs_mount_options options; member 434 if (vfsopts->gid == AID_SDCARD_RW && !sbi->options.default_normal) in get_gid() 608 if (sbi->options.reserved_mb) { in check_min_free_space() 633 if ((avail - size) > (sbi->options.reserved_mb * 1024 * 1024)) in check_min_free_space()
|
/fs/fat/ |
D | file.c | 80 if (sbi->options.sys_immutable && in fat_ioctl_set_attributes() 102 if (sbi->options.sys_immutable) { in fat_ioctl_set_attributes() 153 MSDOS_SB(inode->i_sb)->options.flush) { in fat_file_release() 374 if (MSDOS_SB(inode->i_sb)->options.nfs == FAT_NFS_NOSTALE_RO) { in fat_getattr() 393 mask = sbi->options.fs_fmask; in fat_sanitize_mode() 395 mask = sbi->options.fs_dmask; in fat_sanitize_mode() 422 umode_t allow_utime = sbi->options.allow_utime; in fat_allow_set_time() 456 if (sbi->options.quiet) in fat_setattr() 479 (!uid_eq(attr->ia_uid, sbi->options.fs_uid))) || in fat_setattr() 481 (!gid_eq(attr->ia_gid, sbi->options.fs_gid))) || in fat_setattr() [all …]
|
D | inode.c | 409 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_attach() 428 if (S_ISDIR(inode->i_mode) && sbi->options.nfs) { in fat_detach() 508 inode->i_uid = sbi->options.fs_uid; in fat_fill_inode() 509 inode->i_gid = sbi->options.fs_gid; in fat_fill_inode() 534 ((sbi->options.showexec && !is_exec(de->name + 8)) in fat_fill_inode() 546 if (sbi->options.sys_immutable) in fat_fill_inode() 555 if (sbi->options.isvfat) { in fat_fill_inode() 567 if (sbi->options.nfs == FAT_NFS_NOSTALE_RO) in fat_lock_build_inode() 573 if (sbi->options.nfs == FAT_NFS_NOSTALE_RO) in fat_unlock_build_inode() 704 if (sbi->options.iocharset != fat_default_iocharset) in delayed_free() [all …]
|
D | namei_msdos.c | 124 err = msdos_format_name(name, len, msdos_name, &sbi->options); in msdos_find() 129 if (!err && sbi->options.dotsOK) { in msdos_find() 151 struct fat_mount_options *options = &MSDOS_SB(dentry->d_sb)->options; in msdos_hash() local 155 error = msdos_format_name(qstr->name, qstr->len, msdos_name, options); in msdos_hash() 168 struct fat_mount_options *options = &MSDOS_SB(dentry->d_sb)->options; in msdos_cmp() local 172 error = msdos_format_name(name->name, name->len, a_msdos_name, options); in msdos_cmp() 175 error = msdos_format_name(str, len, b_msdos_name, options); in msdos_cmp() 275 msdos_name, &MSDOS_SB(sb)->options); in msdos_create() 356 msdos_name, &MSDOS_SB(sb)->options); in msdos_mkdir() 613 &MSDOS_SB(old_dir->i_sb)->options); in msdos_rename() [all …]
|
D | misc.c | 21 struct fat_mount_options *opts = &MSDOS_SB(sb)->options; in __fat_fs_error() 212 if (!sbi->options.tz_set) in fat_time_fat2unix() 215 second -= sbi->options.time_offset * SECS_PER_MIN; in fat_time_fat2unix() 232 (sbi->options.tz_set ? sbi->options.time_offset : in fat_time_unix2fat()
|
D | fat.h | 81 struct fat_mount_options options; member 162 if (!sbi->options.rodir) in fat_mode_can_hold_ro() 164 mask = ~sbi->options.fs_dmask; in fat_mode_can_hold_ro() 166 mask = ~sbi->options.fs_fmask; in fat_mode_can_hold_ro() 177 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode() 181 return (mode & ~sbi->options.fs_dmask) | S_IFDIR; in fat_make_mode() 183 return (mode & ~sbi->options.fs_fmask) | S_IFREG; in fat_make_mode()
|
D | dir.c | 144 int uni_xlate = MSDOS_SB(sb)->options.unicode_xlate; in uni16_to_x8() 185 if (sbi->options.utf8) in fat_uni_to_x8() 261 if (sbi->options.name_check != 's') in fat_name_match() 355 int isvfat = sbi->options.isvfat; in fat_parse_short() 356 int nocase = sbi->options.nocase; in fat_parse_short() 357 unsigned short opt_shortname = sbi->options.shortname; in fat_parse_short() 449 if (sbi->options.isvfat) { in fat_parse_short() 563 int isvfat = sbi->options.isvfat; in __fat_readdir() 635 sbi->options.dotsOK); in __fat_readdir() 649 short_len = fat_parse_short(sb, de, bufname, sbi->options.dotsOK); in __fat_readdir() [all …]
|
D | nfs.c | 55 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()
|
/fs/nfs/ |
D | super.c | 328 static int nfs4_validate_mount_data(void *options, 694 if (nfss->options & NFS_OPTION_FSCACHE) in nfs_show_mount_options() 697 if (nfss->options & NFS_OPTION_MIGRATION) in nfs_show_mount_options() 886 if (nfss->options & NFS_OPTION_FSCACHE) { in nfs_show_stats() 1329 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options() 1334 mnt->options &= ~NFS_OPTION_FSCACHE; in nfs_parse_mount_options() 1339 mnt->options |= NFS_OPTION_MIGRATION; in nfs_parse_mount_options() 1342 mnt->options &= ~NFS_OPTION_MIGRATION; in nfs_parse_mount_options() 1581 mnt->options |= NFS_OPTION_FSCACHE; in nfs_parse_mount_options() 1638 if (mnt->options & NFS_OPTION_MIGRATION && in nfs_parse_mount_options() [all …]
|
/fs/hostfs/ |
D | hostfs_kern.c | 46 static int __init hostfs_args(char *options, int *add) in hostfs_args() argument 50 ptr = strchr(options, ','); in hostfs_args() 53 if (*options != '\0') in hostfs_args() 54 root_ino = options; in hostfs_args() 56 options = ptr; in hostfs_args() 57 while (options) { in hostfs_args() 58 ptr = strchr(options, ','); in hostfs_args() 61 if (*options != '\0') { in hostfs_args() 62 if (!strcmp(options, "append")) in hostfs_args() 65 options); in hostfs_args() [all …]
|
/fs/proc/ |
D | root.c | 36 int proc_parse_options(char *options, struct pid_namespace *pid) in proc_parse_options() argument 42 if (!options) in proc_parse_options() 45 while ((p = strsep(&options, ",")) != NULL) { in proc_parse_options()
|
/fs/ncpfs/ |
D | getopt.c | 28 int ncp_getopt(const char *caller, char **options, const struct ncp_option *opts, in ncp_getopt() argument 35 if ((token = strsep(options, ",")) == NULL) in ncp_getopt()
|
D | inode.c | 379 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() 477 int options; in ncp_fill_super() local 669 NCP_DEFAULT_OPTIONS, &(server->buffer_size), &options) == 0) in ncp_fill_super() 671 if (options != NCP_DEFAULT_OPTIONS) in ncp_fill_super() 675 options & 2, in ncp_fill_super() 676 &(server->buffer_size), &options) != 0) in ncp_fill_super() 683 if (options & 2) in ncp_fill_super()
|
/fs/ext2/ |
D | super.c | 391 char *options = (char *) *data; in get_sb_block() local 393 if (!options || strncmp(options, "sb=", 3) != 0) in get_sb_block() 395 options += 3; in get_sb_block() 396 sb_block = simple_strtoul(options, &options, 0); in get_sb_block() 397 if (*options && *options != ',') { in get_sb_block() 402 if (*options == ',') in get_sb_block() 403 options++; in get_sb_block() 404 *data = (void *) options; in get_sb_block() 452 static int parse_options(char *options, struct super_block *sb) in parse_options() argument 461 if (!options) in parse_options() [all …]
|
/fs/autofs4/ |
D | inode.c | 132 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, in parse_options() argument 148 if (!options) in parse_options() 151 while ((p = strsep(&options, ",")) != NULL) { in parse_options()
|
/fs/ocfs2/ |
D | super.c | 101 static int ocfs2_parse_options(struct super_block *sb, char *options, 105 struct mount_options *options); 1241 struct mount_options *options) in ocfs2_check_set_options() argument 1243 if (options->mount_opt & OCFS2_MOUNT_USRQUOTA && in ocfs2_check_set_options() 1250 if (options->mount_opt & OCFS2_MOUNT_GRPQUOTA && in ocfs2_check_set_options() 1257 if (options->mount_opt & OCFS2_MOUNT_POSIX_ACL && in ocfs2_check_set_options() 1264 if (!(options->mount_opt & (OCFS2_MOUNT_POSIX_ACL | in ocfs2_check_set_options() 1267 options->mount_opt |= OCFS2_MOUNT_POSIX_ACL; in ocfs2_check_set_options() 1269 options->mount_opt |= OCFS2_MOUNT_NO_POSIX_ACL; in ocfs2_check_set_options() 1275 char *options, in ocfs2_parse_options() argument [all …]
|
/fs/nilfs2/ |
D | super.c | 731 static int parse_options(char *options, struct super_block *sb, int is_remount) in parse_options() argument 737 if (!options) in parse_options() 740 while ((p = strsep(&options, ",")) != NULL) { in parse_options() 1247 char *p, *options = data; in nilfs_identify() local 1253 p = strsep(&options, ","); in nilfs_identify() 1260 if (!options) in nilfs_identify() 1262 BUG_ON(options == data); in nilfs_identify() 1263 *(options - 1) = ','; in nilfs_identify()
|
/fs/ |
D | compat.c | 781 void *options; in COMPAT_SYSCALL_DEFINE5() local 795 options = copy_mount_options(data); in COMPAT_SYSCALL_DEFINE5() 796 retval = PTR_ERR(options); in COMPAT_SYSCALL_DEFINE5() 797 if (IS_ERR(options)) in COMPAT_SYSCALL_DEFINE5() 800 if (kernel_type && options) { in COMPAT_SYSCALL_DEFINE5() 802 do_ncp_super_data_conv(options); in COMPAT_SYSCALL_DEFINE5() 805 if (do_nfs4_super_data_conv(options)) in COMPAT_SYSCALL_DEFINE5() 810 retval = do_mount(kernel_dev, dir_name, kernel_type, flags, options); in COMPAT_SYSCALL_DEFINE5() 813 kfree(options); in COMPAT_SYSCALL_DEFINE5()
|
D | namespace.c | 1246 const char *options; in generic_show_options() local 1249 options = rcu_dereference(root->d_sb->s_options); in generic_show_options() 1251 if (options != NULL && options[0]) { in generic_show_options() 1253 mangle(m, options); in generic_show_options() 1274 void save_mount_options(struct super_block *sb, char *options) in save_mount_options() argument 1277 rcu_assign_pointer(sb->s_options, kstrdup(options, GFP_KERNEL)); in save_mount_options() 1281 void replace_mount_options(struct super_block *sb, char *options) in replace_mount_options() argument 1284 rcu_assign_pointer(sb->s_options, options); in replace_mount_options() 3034 void *options; in SYSCALL_DEFINE5() local 3046 options = copy_mount_options(data); in SYSCALL_DEFINE5() [all …]
|
/fs/pstore/ |
D | inode.c | 247 static void parse_options(char *options) in parse_options() argument 253 if (!options) in parse_options() 256 while ((p = strsep(&options, ",")) != NULL) { in parse_options()
|