/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | 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 …]
|
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 zfsvfs_vfs_free(vfs_t *vfsp) in zfsvfs_vfs_free() argument 115 if (vfsp != NULL) { in zfsvfs_vfs_free() 116 if (vfsp->vfs_mntpoint != NULL) in zfsvfs_vfs_free() 117 kmem_strfree(vfsp->vfs_mntpoint); in zfsvfs_vfs_free() 118 mutex_destroy(&vfsp->vfs_mntpt_lock); in zfsvfs_vfs_free() 119 kmem_free(vfsp, sizeof (vfs_t)); in zfsvfs_vfs_free() 124 zfsvfs_parse_option(char *option, int token, substring_t *args, vfs_t *vfsp) in zfsvfs_parse_option() argument 128 vfsp->vfs_readonly = B_TRUE; in zfsvfs_parse_option() 129 vfsp->vfs_do_readonly = B_TRUE; in zfsvfs_parse_option() 132 vfsp->vfs_readonly = B_FALSE; in zfsvfs_parse_option() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | 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_ 167 vfs_t *vfsp; zfs_get_temporary_prop() local 285 zfs_quotactl(vfs_t * vfsp,int cmds,uid_t id,void * arg,bool * mp_busy) zfs_quotactl() argument 413 zfs_sync(vfs_t * vfsp,int waitfor) zfs_sync() argument 626 zfs_register_callbacks(vfs_t * vfsp) zfs_register_callbacks() argument 1176 zfs_domount(vfs_t * vfsp,char * osname) zfs_domount() argument 1310 zfs_mount(vfs_t * vfsp) zfs_mount() argument 1448 zfs_statfs(vfs_t * vfsp,struct statfs * statp) zfs_statfs() argument 1510 zfs_root(vfs_t * vfsp,int flags,vnode_t ** vpp) zfs_root() argument 1671 zfs_umount(vfs_t * vfsp,int fflag) zfs_umount() argument 1749 zfs_vget(vfs_t * vfsp,ino_t ino,int flags,vnode_t ** vpp) zfs_vget() argument 1785 zfs_checkexp(vfs_t * vfsp,struct sockaddr * nam,uint64_t * extflagsp,struct ucred ** credanonp,int * numsecflavors,int * secflavors) zfs_checkexp() argument 1807 zfs_fhtovp(vfs_t * vfsp,fid_t * fidp,int flags,vnode_t ** vpp) zfs_fhtovp() argument 2025 zfs_freevfs(vfs_t * vfsp) zfs_freevfs() argument [all...] |
H A D | 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/sys/kern/ |
H A D | 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 …]
|
H A D | 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 …]
|
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 | 4902 vfsconf2x(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x() argument 4907 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x() 4908 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x() 4909 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x() 4910 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x() 4931 vfsconf2x32(struct sysctl_req *req, struct vfsconf *vfsp) in vfsconf2x32() argument 4936 strcpy(xvfsp.vfc_name, vfsp->vfc_name); in vfsconf2x32() 4937 xvfsp.vfc_typenum = vfsp->vfc_typenum; in vfsconf2x32() 4938 xvfsp.vfc_refcount = vfsp->vfc_refcount; in vfsconf2x32() 4939 xvfsp.vfc_flags = vfsp->vfc_flags; in vfsconf2x32() [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/p9fs/ |
H A D | p9fs_vfsops.c | 97 p9fs_init(struct vfsconf *vfsp) in p9fs_init() argument 127 p9fs_uninit(struct vfsconf *vfsp) in p9fs_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
|