Lines Matching refs:fsc
177 static int fuse_reconfigure(struct fs_context *fsc) in fuse_reconfigure() argument
179 struct super_block *sb = fsc->root->d_sb; in fuse_reconfigure()
182 if (fsc->sb_flags & SB_MANDLOCK) in fuse_reconfigure()
746 static int fuse_parse_param(struct fs_context *fsc, struct fs_parameter *param) in fuse_parse_param() argument
749 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_parse_param()
752 if (fsc->purpose == FS_CONTEXT_FOR_RECONFIGURE) { in fuse_parse_param()
757 if (fsc->oldapi) in fuse_parse_param()
760 return invalfc(fsc, "No changes allowed in reconfigure"); in fuse_parse_param()
763 opt = fs_parse(fsc, fuse_fs_parameters, param, &result); in fuse_parse_param()
769 if (fsc->source) in fuse_parse_param()
770 return invalfc(fsc, "Multiple sources specified"); in fuse_parse_param()
771 fsc->source = param->string; in fuse_parse_param()
777 return invalfc(fsc, "Multiple subtypes specified"); in fuse_parse_param()
789 return invalfc(fsc, "Invalid rootmode"); in fuse_parse_param()
795 ctx->user_id = make_kuid(fsc->user_ns, result.uint_32); in fuse_parse_param()
797 return invalfc(fsc, "Invalid user_id"); in fuse_parse_param()
802 ctx->group_id = make_kgid(fsc->user_ns, result.uint_32); in fuse_parse_param()
804 return invalfc(fsc, "Invalid group_id"); in fuse_parse_param()
822 return invalfc(fsc, "blksize only supported for fuseblk"); in fuse_parse_param()
833 static void fuse_free_fsc(struct fs_context *fsc) in fuse_free_fsc() argument
835 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_free_fsc()
1569 static int fuse_get_tree_submount(struct fs_context *fsc) in fuse_get_tree_submount() argument
1572 struct fuse_inode *mp_fi = fsc->fs_private; in fuse_get_tree_submount()
1582 fsc->s_fs_info = fm; in fuse_get_tree_submount()
1583 sb = sget_fc(fsc, NULL, set_anon_super_fc); in fuse_get_tree_submount()
1584 if (fsc->s_fs_info) in fuse_get_tree_submount()
1601 fsc->root = dget(sb->s_root); in fuse_get_tree_submount()
1610 int fuse_init_fs_context_submount(struct fs_context *fsc) in fuse_init_fs_context_submount() argument
1612 fsc->ops = &fuse_context_submount_ops; in fuse_init_fs_context_submount()
1719 static int fuse_fill_super(struct super_block *sb, struct fs_context *fsc) in fuse_fill_super() argument
1721 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_fill_super()
1750 static int fuse_set_no_super(struct super_block *sb, struct fs_context *fsc) in fuse_set_no_super() argument
1755 static int fuse_test_super(struct super_block *sb, struct fs_context *fsc) in fuse_test_super() argument
1758 return fsc->sget_key == get_fuse_conn_super(sb); in fuse_test_super()
1761 static int fuse_get_tree(struct fs_context *fsc) in fuse_get_tree() argument
1763 struct fuse_fs_context *ctx = fsc->fs_private; in fuse_get_tree()
1780 fuse_conn_init(fc, fm, fsc->user_ns, &fuse_dev_fiq_ops, NULL); in fuse_get_tree()
1783 fsc->s_fs_info = fm; in fuse_get_tree()
1789 err = get_tree_bdev(fsc, fuse_fill_super); in fuse_get_tree()
1806 fsc->sget_key = fud->fc; in fuse_get_tree()
1807 sb = sget_fc(fsc, fuse_test_super, fuse_set_no_super); in fuse_get_tree()
1810 fsc->root = dget(sb->s_root); in fuse_get_tree()
1812 err = get_tree_nodev(fsc, fuse_fill_super); in fuse_get_tree()
1815 if (fsc->s_fs_info) in fuse_get_tree()
1832 static int fuse_init_fs_context(struct fs_context *fsc) in fuse_init_fs_context() argument
1845 if (fsc->fs_type == &fuseblk_fs_type) { in fuse_init_fs_context()
1851 fsc->fs_private = ctx; in fuse_init_fs_context()
1852 fsc->ops = &fuse_context_ops; in fuse_init_fs_context()