/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_vfs.c | 55 MNT_ILOCK(vfsp); in vfs_setmntopt() 57 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt() 60 MNT_IUNLOCK(vfsp); in vfs_setmntopt() 62 MNT_ILOCK(vfsp); in vfs_setmntopt() 64 vfsp->mnt_opt = opts; in vfs_setmntopt() 71 MNT_IUNLOCK(vfsp); in vfs_setmntopt() 88 MNT_ILOCK(vfsp); in vfs_setmntopt() 91 MNT_IUNLOCK(vfsp); in vfs_setmntopt() 100 MNT_ILOCK(vfsp); in vfs_clearmntopt() 103 MNT_IUNLOCK(vfsp); in vfs_clearmntopt() [all …]
|
H A D | 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/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zfs_vfsops.c | 113 if (vfsp != NULL) { in zfsvfs_vfs_free() 142 vfsp->vfs_exec = B_TRUE; in zfsvfs_parse_option() 247 *vfsp = tmp_vfsp; in zfsvfs_parse_options() 459 ASSERT(vfsp); in zfs_register_callbacks() 522 if (vfsp->vfs_do_exec) in zfs_register_callbacks() 526 if (vfsp->vfs_do_xattr) in zfs_register_callbacks() 528 if (vfsp->vfs_do_atime) in zfs_register_callbacks() 554 vfs_t *vfsp; in zfs_get_temporary_prop() local 571 vfsp = zfvp->z_vfs; in zfs_get_temporary_prop() 1678 vfs_t *vfsp; in zfs_remount() local [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vfsops.c | 176 vfs_t *vfsp; in zfs_get_temporary_prop() local 189 vfsp = zfvp->z_vfs; in zfs_get_temporary_prop() 232 vfs_unbusy(vfsp); in zfs_get_temporary_prop() 236 vfs_unbusy(vfsp); in zfs_get_temporary_prop() 324 vfs_unbusy(vfsp); in zfs_quotactl() 385 vfs_unbusy(vfsp); in zfs_quotactl() 391 vfs_unbusy(vfsp); in zfs_quotactl() 439 if (vfsp != NULL) { in zfs_sync() 1187 zfsvfs->z_vfs = vfsp; in zfs_domount() 1309 zfs_mount(vfs_t *vfsp) in zfs_mount() argument [all …]
|
H A D | zfs_ctldir.c | 1285 zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp) in zfsctl_lookup_objset() argument 1287 zfsvfs_t *zfsvfs __unused = vfsp->vfs_data; in zfsctl_lookup_objset() 1293 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_lookup_objset() 1314 zfsctl_umount_snapshots(vfs_t *vfsp, int fflags, cred_t *cr) in zfsctl_umount_snapshots() argument 1317 zfsvfs_t *zfsvfs = vfsp->vfs_data; in zfsctl_umount_snapshots() 1340 error = sfs_vnode_get(vfsp, LK_EXCLUSIVE, in zfsctl_umount_snapshots() 1383 vfs_t *vfsp = NULL; in zfsctl_snapshot_unmount() local 1394 vfsp = zfsvfs->z_vfs; in zfsctl_snapshot_unmount() 1398 vfs_ref(vfsp); in zfsctl_snapshot_unmount() 1399 vfs_unbusy(vfsp); in zfsctl_snapshot_unmount() [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_init.c | 109 struct vfsconf *vfsp; in vfs_byname_locked() local 116 return (vfsp); in vfs_byname_locked() 124 struct vfsconf *vfsp; in vfs_byname() local 129 return (vfsp); in vfs_byname() 135 struct vfsconf *vfsp; in vfs_byname_kld() local 139 if (vfsp != NULL) in vfs_byname_kld() 140 return (vfsp); in vfs_byname_kld() 154 if (vfsp == NULL) { in vfs_byname_kld() 160 return (vfsp); in vfs_byname_kld() 540 struct vfsconf *vfsp; in vfs_unregister() local [all …]
|
H A D | vfs_mount.c | 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() 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() 1092 vfsp->vfc_vfsops->vfs_cmount == NULL)) in sys_mount() 1101 if ((vfsp->vfc_flags & VFCF_SBDRY) != 0) in sys_mount() 1147 if (vfsp->vfc_flags & VFCF_FILEMOUNT) { in vfs_domount_first() 1586 struct vfsconf *vfsp; in vfs_domount() local [all …]
|
H A D | 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()
|
H A D | vfs_subr.c | 4826 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x() 4855 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x32() 4866 struct vfsconf *vfsp; in sysctl_vfs_conflist() local 4874 error = vfsconf2x32(req, vfsp); in sysctl_vfs_conflist() 4877 error = vfsconf2x(req, vfsp); in sysctl_vfs_conflist() 4897 struct vfsconf *vfsp; in vfs_sysctl() local 4922 if (vfsp == NULL) in vfs_sysctl() 4926 return (vfsconf2x32(req, vfsp)); in vfs_sysctl() 4929 return (vfsconf2x(req, vfsp)); in vfs_sysctl() 4944 struct vfsconf *vfsp; in sysctl_ovfs_conf() local [all …]
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | 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
|
H A D | 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);
|
H A D | dnlc.h | 35 #define dnlc_purge_vfsp(vfsp, count) (0) argument
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | 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);
|
H A D | 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/sys/fs/nullfs/ |
H A D | null.h | 66 int nullfs_init(struct vfsconf *vfsp); 67 int nullfs_uninit(struct vfsconf *vfsp);
|
H A D | null_subr.c | 70 nullfs_init(struct vfsconf *vfsp) in nullfs_init() argument 80 nullfs_uninit(struct vfsconf *vfsp) in nullfs_uninit() argument
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_vfsops.c | 172 ufs_init(struct vfsconf *vfsp) in ufs_init() argument 188 ufs_uninit(struct vfsconf *vfsp) in ufs_uninit() argument
|
/freebsd/sys/fs/autofs/ |
H A D | autofs.h | 125 int autofs_init(struct vfsconf *vfsp); 126 int autofs_uninit(struct vfsconf *vfsp);
|
H A D | autofs.c | 160 autofs_init(struct vfsconf *vfsp) in autofs_init() argument 197 autofs_uninit(struct vfsconf *vfsp) in autofs_uninit() argument
|
/freebsd/sys/libkern/ |
H A D | 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/sys/contrib/openzfs/include/os/freebsd/zfs/sys/ |
H A D | zfs_ctldir.h | 56 int zfsctl_lookup_objset(vfs_t *vfsp, uint64_t objsetid, zfsvfs_t **zfsvfsp);
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clsubs.c | 90 ncl_uninit(struct vfsconf *vfsp) in ncl_uninit() argument 375 ncl_init(struct vfsconf *vfsp) in ncl_init() argument
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_vfsops.c | 358 smbfs_init(struct vfsconf *vfsp) in smbfs_init() argument 368 smbfs_uninit(struct vfsconf *vfsp) in smbfs_uninit() argument
|
/freebsd/sys/fs/fdescfs/ |
H A D | fdesc_vnops.c | 98 fdesc_init(struct vfsconf *vfsp) in fdesc_init() argument 110 fdesc_uninit(struct vfsconf *vfsp) in fdesc_uninit() argument
|
/freebsd/sys/compat/linprocfs/ |
H A D | linprocfs.c | 1818 struct vfsconf *vfsp; in linprocfs_dofilesystems() local 1821 TAILQ_FOREACH(vfsp, &vfsconf, vfc_list) { in linprocfs_dofilesystems() 1822 if (vfsp->vfc_flags & VFCF_SYNTHETIC) in linprocfs_dofilesystems() 1824 sbuf_printf(sb, "\t%s\n", vfsp->vfc_name); in linprocfs_dofilesystems()
|