| /freebsd-head/sys/contrib/openzfs/module/os/freebsd/spl/ |
| HD | spl_vfs.c | 48 vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg, in vfs_setmntopt() argument 55 if (!(locked = mtx_owned(MNT_MTX(vfsp)))) in vfs_setmntopt() 56 MNT_ILOCK(vfsp); in vfs_setmntopt() 58 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt() 61 MNT_IUNLOCK(vfsp); in vfs_setmntopt() 62 opts = malloc(sizeof (*vfsp->mnt_opt), M_MOUNT, M_WAITOK); in vfs_setmntopt() 63 MNT_ILOCK(vfsp); in vfs_setmntopt() 64 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt() 65 vfsp->mnt_opt = opts; in vfs_setmntopt() 66 TAILQ_INIT(vfsp->mnt_opt); in vfs_setmntopt() [all …]
|
| HD | spl_policy.c | 70 secpolicy_fs_unmount(cred_t *cr, struct mount *vfsp __unused) in secpolicy_fs_unmount() 370 secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct mount *vfsp) in secpolicy_fs_mount() argument 399 secpolicy_fs_mount_clearopts(cred_t *cr, struct mount *vfsp) in secpolicy_fs_mount_clearopts() argument 403 MNT_ILOCK(vfsp); in secpolicy_fs_mount_clearopts() 404 vfsp->vfs_flag |= VFS_NOSETUID | MNT_USER; in secpolicy_fs_mount_clearopts() 405 vfs_clearmntopt(vfsp, MNTOPT_SETUID); in secpolicy_fs_mount_clearopts() 406 vfs_setmntopt(vfsp, MNTOPT_NOSETUID, NULL, 0); in secpolicy_fs_mount_clearopts() 407 MNT_IUNLOCK(vfsp); in secpolicy_fs_mount_clearopts()
|
| /freebsd-head/sys/contrib/openzfs/module/os/linux/zfs/ |
| HD | zfs_vfsops.c | 114 zfsvfs_vfs_free(vfs_t *vfsp) in zfsvfs_vfs_free() argument 116 if (vfsp != NULL) { in zfsvfs_vfs_free() 117 if (vfsp->vfs_mntpoint != NULL) in zfsvfs_vfs_free() 118 kmem_strfree(vfsp->vfs_mntpoint); in zfsvfs_vfs_free() 119 mutex_destroy(&vfsp->vfs_mntpt_lock); in zfsvfs_vfs_free() 120 kmem_free(vfsp, sizeof (vfs_t)); in zfsvfs_vfs_free() 125 zfsvfs_parse_option(char *option, int token, substring_t *args, vfs_t *vfsp) in zfsvfs_parse_option() argument 129 vfsp->vfs_readonly = B_TRUE; in zfsvfs_parse_option() 130 vfsp->vfs_do_readonly = B_TRUE; in zfsvfs_parse_option() 133 vfsp->vfs_readonly = B_FALSE; in zfsvfs_parse_option() [all …]
|
| /freebsd-head/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| HD | zfs_vfsops.c | 119 static int zfs_quotactl(vfs_t *vfsp, int cmds, uid_t id, void *arg, 122 static int zfs_quotactl(vfs_t *vfsp, int cmds, uid_t id, void *arg); 124 static int zfs_mount(vfs_t *vfsp); 125 static int zfs_umount(vfs_t *vfsp, int fflag); 126 static int zfs_root(vfs_t *vfsp, int flags, vnode_t **vpp); 127 static int zfs_statfs(vfs_t *vfsp, struct statfs *statp); 128 static int zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp); 129 static int zfs_sync(vfs_t *vfsp, int waitfor); 130 static int zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, uint64_t *extflagsp, 132 static int zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, int flags, vnode_t **vpp); [all …]
|
| HD | zfs_ctldir.c | 1264 zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp) in zfsctl_lookup_objset() argument 1266 zfsvfs_t *zfsvfs __unused = vfsp->vfs_data; in zfsctl_lookup_objset() 1272 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_lookup_objset() 1293 zfsctl_umount_snapshots(vfs_t *vfsp, int fflags, cred_t *cr) in zfsctl_umount_snapshots() argument 1296 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfsctl_umount_snapshots() 1319 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_umount_snapshots() 1362 vfs_t *vfsp = NULL; in zfsctl_snapshot_unmount() local 1373 vfsp = zfsvfs->z_vfs; in zfsctl_snapshot_unmount() 1377 vfs_ref(vfsp); in zfsctl_snapshot_unmount() 1378 vfs_unbusy(vfsp); in zfsctl_snapshot_unmount() [all …]
|
| /freebsd-head/sys/kern/ |
| HD | vfs_init.c | 109 struct vfsconf *vfsp; in vfs_byname_locked() local 114 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) { in vfs_byname_locked() 115 if (!strcmp(name, vfsp->vfc_name)) in vfs_byname_locked() 116 return (vfsp); in vfs_byname_locked() 124 struct vfsconf *vfsp; in vfs_byname() local 127 vfsp = vfs_byname_locked(name); in vfs_byname() 129 return (vfsp); in vfs_byname() 135 struct vfsconf *vfsp; in vfs_byname_kld() local 138 vfsp = vfs_byname(fstype); in vfs_byname_kld() 139 if (vfsp != NULL) in vfs_byname_kld() [all …]
|
| HD | vfs_mount.c | 662 vfs_mount_alloc(struct vnode *vp, struct vfsconf *vfsp, const char *fspath, in vfs_mount_alloc() argument 685 atomic_add_acq_int(&vfsp->vfc_refcount, 1); in vfs_mount_alloc() 686 mp->mnt_op = vfsp->vfc_vfsops; in vfs_mount_alloc() 687 mp->mnt_vfc = vfsp; in vfs_mount_alloc() 688 mp->mnt_stat.f_type = vfsp->vfc_typenum; in vfs_mount_alloc() 690 strlcpy(mp->mnt_stat.f_fstypename, vfsp->vfc_name, MFSNAMELEN); in vfs_mount_alloc() 1054 struct vfsconf *vfsp = NULL; in sys_mount() local 1085 vfsp = vfs_byname_kld(fstype, td, &error); in sys_mount() 1087 if (vfsp == NULL) in sys_mount() 1089 if (((vfsp->vfc_flags & VFCF_SBDRY) != 0 && in sys_mount() [all …]
|
| HD | vfs_mountroot.c | 249 struct vfsconf *vfsp; in vfs_mountroot_devfs() local 264 vfsp = vfs_byname("devfs"); in vfs_mountroot_devfs() 265 KASSERT(vfsp != NULL, ("Could not find devfs by name")); in vfs_mountroot_devfs() 266 if (vfsp == NULL) in vfs_mountroot_devfs() 269 mp = vfs_mount_alloc(NULLVP, vfsp, "/dev", td->td_ucred); in vfs_mountroot_devfs()
|
| HD | vfs_subr.c | 4904 vfsconf2x(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x() argument 4909 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x() 4910 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x() 4911 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x() 4912 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x() 4933 vfsconf2x32(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x32() argument 4938 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x32() 4939 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x32() 4940 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x32() 4941 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x32() [all …]
|
| /freebsd-head/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-head/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 | 100 void vfs_setmntopt(vfs_t *vfsp, const char *name, const char *arg, 102 void vfs_clearmntopt(vfs_t *vfsp, const char *name); 103 int vfs_optionisset(const vfs_t *vfsp, const char *opt, char **argp);
|
| /freebsd-head/sys/fs/nullfs/ |
| HD | null.h | 66 int nullfs_init(struct vfsconf *vfsp); 67 int nullfs_uninit(struct vfsconf *vfsp);
|
| HD | null_subr.c | 70 nullfs_init(struct vfsconf *vfsp) in nullfs_init() argument 80 nullfs_uninit(struct vfsconf *vfsp) in nullfs_uninit() argument
|
| /freebsd-head/sys/ufs/ufs/ |
| HD | ufs_vfsops.c | 172 ufs_init(struct vfsconf *vfsp) in ufs_init() argument 188 ufs_uninit(struct vfsconf *vfsp) in ufs_uninit() argument
|
| /freebsd-head/sys/fs/autofs/ |
| HD | autofs.h | 125 int autofs_init(struct vfsconf *vfsp); 126 int autofs_uninit(struct vfsconf *vfsp);
|
| HD | autofs.c | 160 autofs_init(struct vfsconf *vfsp) in autofs_init() argument 197 autofs_uninit(struct vfsconf *vfsp) in autofs_uninit() argument
|
| /freebsd-head/sys/libkern/ |
| HD | iconv.c | 576 struct vfsconf *vfsp; in iconv_vfs_refcount() local 578 vfsp = vfs_byname(fsname); in iconv_vfs_refcount() 579 if (vfsp != NULL && vfsp->vfc_refcount > 0) in iconv_vfs_refcount()
|
| /freebsd-head/sys/contrib/openzfs/include/os/freebsd/zfs/sys/ |
| HD | zfs_ctldir.h | 57 int zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp);
|
| /freebsd-head/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-head/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-head/sys/fs/p9fs/ |
| HD | p9fs_vfsops.c | 97 p9fs_init(struct vfsconf *vfsp) in p9fs_init() argument 127 p9fs_uninit(struct vfsconf *vfsp) in p9fs_uninit() argument
|
| /freebsd-head/sys/fs/fdescfs/ |
| HD | fdesc_vnops.c | 98 fdesc_init(struct vfsconf *vfsp) in fdesc_init() argument 110 fdesc_uninit(struct vfsconf *vfsp) in fdesc_uninit() argument
|