| /freebsd-14-stable/sys/contrib/openzfs/module/os/freebsd/spl/ |
| HD | spl_vfs.c | 47 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 …]
|
| HD | spl_policy.c | 76 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/ |
| HD | zfs_vfsops.c | 111 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/ |
| HD | zfs_vfsops.c | 118 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 …]
|
| HD | zfs_ctldir.c | 1263 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/ |
| HD | vfs_init.c | 114 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 …]
|
| HD | vfs_mount.c | 663 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 …]
|
| HD | vfs_mountroot.c | 250 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()
|
| HD | vfs_subr.c | 4836 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/ |
| HD | vfs.h | 96 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
|
| HD | policy.h | 44 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);
|
| HD | dnlc.h | 35 #define dnlc_purge_vfsp(vfsp, count) (0) argument
|
| /freebsd-14-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| HD | policy.h | 44 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);
|
| HD | vfs.h | 99 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/ |
| HD | null.h | 68 int nullfs_init(struct vfsconf *vfsp); 69 int nullfs_uninit(struct vfsconf *vfsp);
|
| HD | null_subr.c | 72 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/ |
| HD | ufs_vfsops.c | 174 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/ |
| HD | autofs.h | 123 int autofs_init(struct vfsconf *vfsp); 124 int autofs_uninit(struct vfsconf *vfsp);
|
| HD | autofs.c | 161 autofs_init(struct vfsconf *vfsp) in autofs_init() argument 198 autofs_uninit(struct vfsconf *vfsp) in autofs_uninit() argument
|
| /freebsd-14-stable/sys/libkern/ |
| HD | iconv.c | 577 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/ |
| HD | zfs_ctldir.h | 56 int zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp);
|
| /freebsd-14-stable/sys/fs/nfsclient/ |
| HD | nfs_clsubs.c | 90 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/ |
| HD | smbfs_vfsops.c | 358 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/ |
| HD | fdesc_vnops.c | 100 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/ |
| HD | linprocfs.c | 1816 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()
|