Lines Matching refs:opts
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
237 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) in debugfs_show_options()
239 from_kuid_munged(&init_user_ns, opts->uid)); in debugfs_show_options()
240 if (!gid_eq(opts->gid, GLOBAL_ROOT_GID)) in debugfs_show_options()
242 from_kgid_munged(&init_user_ns, opts->gid)); in debugfs_show_options()
243 if (opts->mode != DEBUGFS_DEFAULT_MODE) in debugfs_show_options()
244 seq_printf(m, ",mode=%o", opts->mode); in debugfs_show_options()