Home
last modified time | relevance | path

Searched refs:vfsp (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-14-stable/sys/contrib/openzfs/module/os/freebsd/spl/
HDspl_vfs.c47 vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg, in vfs_setmntopt() argument
54 if (!(locked = mtx_owned(MNT_MTX(vfsp)))) in vfs_setmntopt()
55 MNT_ILOCK(vfsp); in vfs_setmntopt()
57 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt()
60 MNT_IUNLOCK(vfsp); in vfs_setmntopt()
61 opts = malloc(sizeof (*vfsp->mnt_opt), M_MOUNT, M_WAITOK); in vfs_setmntopt()
62 MNT_ILOCK(vfsp); in vfs_setmntopt()
63 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt()
64 vfsp->mnt_opt = opts; in vfs_setmntopt()
65 TAILQ_INIT(vfsp->mnt_opt); in vfs_setmntopt()
[all …]
HDspl_policy.c76 secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp __unused) in secpolicy_fs_unmount()
376 secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp) in secpolicy_fs_mount() argument
405 secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp) in secpolicy_fs_mount_clearopts() argument
409 MNT_ILOCK(vfsp); in secpolicy_fs_mount_clearopts()
410 vfsp->vfs_flag |= VFS_NOSETUID | MNT_USER; in secpolicy_fs_mount_clearopts()
411 vfs_clearmntopt(vfsp, MNTOPT_SETUID); in secpolicy_fs_mount_clearopts()
412 vfs_setmntopt(vfsp, MNTOPT_NOSETUID, NULL, 0); in secpolicy_fs_mount_clearopts()
413 MNT_IUNLOCK(vfsp); in secpolicy_fs_mount_clearopts()
/freebsd-14-stable/sys/contrib/openzfs/module/os/linux/zfs/
HDzfs_vfsops.c111 zfsvfs_vfs_free(vfs_t *vfsp) in zfsvfs_vfs_free() argument
113 if (vfsp != NULL) { in zfsvfs_vfs_free()
114 if (vfsp->vfs_mntpoint != NULL) in zfsvfs_vfs_free()
115 kmem_strfree(vfsp->vfs_mntpoint); in zfsvfs_vfs_free()
116 mutex_destroy(&vfsp->vfs_mntpt_lock); in zfsvfs_vfs_free()
117 kmem_free(vfsp, sizeof (vfs_t)); in zfsvfs_vfs_free()
122 zfsvfs_parse_option(char *option, int token, substring_t *args, vfs_t *vfsp) in zfsvfs_parse_option() argument
126 vfsp->vfs_readonly = B_TRUE; in zfsvfs_parse_option()
127 vfsp->vfs_do_readonly = B_TRUE; in zfsvfs_parse_option()
130 vfsp->vfs_readonly = B_FALSE; in zfsvfs_parse_option()
[all …]
/freebsd-14-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
HDzfs_vfsops.c118 static int zfs_quotactl(vfs_t *vfsp, int cmds, uid_t id, void *arg,
121 static int zfs_quotactl(vfs_t *vfsp, int cmds, uid_t id, void *arg);
123 static int zfs_mount(vfs_t *vfsp);
124 static int zfs_umount(vfs_t *vfsp, int fflag);
125 static int zfs_root(vfs_t *vfsp, int flags, vnode_t **vpp);
126 static int zfs_statfs(vfs_t *vfsp, struct statfs *statp);
127 static int zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp);
128 static int zfs_sync(vfs_t *vfsp, int waitfor);
129 static int zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, uint64_t *extflagsp,
131 static int zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp);
[all …]
HDzfs_ctldir.c1263 zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp) in zfsctl_lookup_objset() argument
1265 zfsvfs_t *zfsvfs __unused = vfsp->vfs_data; in zfsctl_lookup_objset()
1271 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_lookup_objset()
1292 zfsctl_umount_snapshots(vfs_t *vfsp, int fflags, cred_t *cr) in zfsctl_umount_snapshots() argument
1295 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfsctl_umount_snapshots()
1318 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_umount_snapshots()
1361 vfs_t *vfsp = NULL; in zfsctl_snapshot_unmount() local
1372 vfsp = zfsvfs->z_vfs; in zfsctl_snapshot_unmount()
1376 vfs_ref(vfsp); in zfsctl_snapshot_unmount()
1377 vfs_unbusy(vfsp); in zfsctl_snapshot_unmount()
[all …]
/freebsd-14-stable/sys/kern/
HDvfs_init.c114 struct vfsconf *vfsp; in vfs_byname_locked() local
119 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) { in vfs_byname_locked()
120 if (!strcmp(name, vfsp->vfc_name)) in vfs_byname_locked()
121 return (vfsp); in vfs_byname_locked()
129 struct vfsconf *vfsp; in vfs_byname() local
132 vfsp = vfs_byname_locked(name); in vfs_byname()
134 return (vfsp); in vfs_byname()
140 struct vfsconf *vfsp; in vfs_byname_kld() local
143 vfsp = vfs_byname(fstype); in vfs_byname_kld()
144 if (vfsp != NULL) in vfs_byname_kld()
[all …]
HDvfs_mount.c663 vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp, const char *fspath, in vfs_mount_alloc() argument
686 atomic_add_acq_int(&vfsp->vfc_refcount, 1); in vfs_mount_alloc()
687 mp->mnt_op = vfsp->vfc_vfsops; in vfs_mount_alloc()
688 mp->mnt_vfc = vfsp; in vfs_mount_alloc()
689 mp->mnt_stat.f_type = vfsp->vfc_typenum; in vfs_mount_alloc()
691 strlcpy(mp->mnt_stat.f_fstypename, vfsp->vfc_name, MFSNAMELEN); in vfs_mount_alloc()
1055 struct vfsconf *vfsp = NULL; in sys_mount() local
1086 vfsp = vfs_byname_kld(fstype, td, &error); in sys_mount()
1088 if (vfsp == NULL) in sys_mount()
1090 if (((vfsp->vfc_flags & VFCF_SBDRY) != 0 && in sys_mount()
[all …]
HDvfs_mountroot.c250 struct vfsconf *vfsp; in vfs_mountroot_devfs() local
265 vfsp = vfs_byname("devfs"); in vfs_mountroot_devfs()
266 KASSERT(vfsp != NULL, ("Could not find devfs by name")); in vfs_mountroot_devfs()
267 if (vfsp == NULL) in vfs_mountroot_devfs()
270 mp = vfs_mount_alloc(NULLVP, vfsp, "/dev", td->td_ucred); in vfs_mountroot_devfs()
HDvfs_subr.c4836 vfsconf2x(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x() argument
4841 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x()
4842 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x()
4843 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x()
4844 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x()
4865 vfsconf2x32(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x32() argument
4870 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x32()
4871 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x32()
4872 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x32()
4873 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x32()
[all …]
/freebsd-14-stable/sys/cddl/compat/opensolaris/sys/
HDvfs.h96 void vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg,
98 void vfs_clearmntopt(vfs_t *vfsp, const char *name);
99 int vfs_optionisset(const vfs_t *vfsp, const char *opt, char **argp);
117 #define vfs_set_feature(vfsp, feature) do { } while (0) argument
118 #define vfs_clear_feature(vfsp, feature) do { } while (0) argument
119 #define vfs_has_feature(vfsp, feature) (0) argument
HDpolicy.h44 int secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp);
66 int secpolicy_fs_owner(struct mount *vfsp, cred_t *cr);
67 int secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp);
68 void secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp);
HDdnlc.h35 #define dnlc_purge_vfsp(vfsp, count) (0) argument
/freebsd-14-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
HDpolicy.h44 int secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp);
66 int secpolicy_fs_owner(struct mount *vfsp, cred_t *cr);
67 int secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp);
68 void secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp);
HDvfs.h99 void vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg,
101 void vfs_clearmntopt(vfs_t *vfsp, const char *name);
102 int vfs_optionisset(const vfs_t *vfsp, const char *opt, char **argp);
/freebsd-14-stable/sys/fs/nullfs/
HDnull.h68 int nullfs_init(struct vfsconf *vfsp);
69 int nullfs_uninit(struct vfsconf *vfsp);
HDnull_subr.c72 nullfs_init(struct vfsconf *vfsp) in nullfs_init() argument
82 nullfs_uninit(struct vfsconf *vfsp) in nullfs_uninit() argument
/freebsd-14-stable/sys/ufs/ufs/
HDufs_vfsops.c174 ufs_init(struct vfsconf *vfsp) in ufs_init() argument
190 ufs_uninit(struct vfsconf *vfsp) in ufs_uninit() argument
/freebsd-14-stable/sys/fs/autofs/
HDautofs.h123 int autofs_init(struct vfsconf *vfsp);
124 int autofs_uninit(struct vfsconf *vfsp);
HDautofs.c161 autofs_init(struct vfsconf *vfsp) in autofs_init() argument
198 autofs_uninit(struct vfsconf *vfsp) in autofs_uninit() argument
/freebsd-14-stable/sys/libkern/
HDiconv.c577 struct vfsconf *vfsp; in iconv_vfs_refcount() local
579 vfsp = vfs_byname(fsname); in iconv_vfs_refcount()
580 if (vfsp != NULL && vfsp->vfc_refcount > 0) in iconv_vfs_refcount()
/freebsd-14-stable/sys/contrib/openzfs/include/os/freebsd/zfs/sys/
HDzfs_ctldir.h56 int zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp);
/freebsd-14-stable/sys/fs/nfsclient/
HDnfs_clsubs.c90 ncl_uninit(struct vfsconf *vfsp) in ncl_uninit() argument
375 ncl_init(struct vfsconf *vfsp) in ncl_init() argument
/freebsd-14-stable/sys/fs/smbfs/
HDsmbfs_vfsops.c358 smbfs_init(struct vfsconf *vfsp) in smbfs_init() argument
368 smbfs_uninit(struct vfsconf *vfsp) in smbfs_uninit() argument
/freebsd-14-stable/sys/fs/fdescfs/
HDfdesc_vnops.c100 fdesc_init(struct vfsconf *vfsp) in fdesc_init() argument
112 fdesc_uninit(struct vfsconf *vfsp) in fdesc_uninit() argument
/freebsd-14-stable/sys/compat/linprocfs/
HDlinprocfs.c1816 struct vfsconf *vfsp; in linprocfs_dofilesystems() local
1819 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) { in linprocfs_dofilesystems()
1820 if (vfsp->vfc_flags & VFCF_SYNTHETIC) in linprocfs_dofilesystems()
1822 sbuf_printf(sb, "\t%s\n", vfsp->vfc_name); in linprocfs_dofilesystems()

12