Lines Matching refs:vfsp
316 autofs_restrict_opts(struct vfs *vfsp, char *buf, size_t maxlen, size_t *curlen) in autofs_restrict_opts() argument
323 if (!vfs_optionisset(vfsp, restropts[0], NULL)) in autofs_restrict_opts()
330 if ((i == 0 || vfs_optionisset(vfsp, restropts[i], NULL)) && in autofs_restrict_opts()
350 auto_mount(vfs_t *vfsp, vnode_t *vp, struct mounta *uap, cred_t *cr) in auto_mount() argument
366 AUTOFS_DPRINT((4, "auto_mount: vfs %p vp %p\n", (void *)vfsp, in auto_mount()
369 if ((error = secpolicy_fs_mount(cr, vp, vfsp)) != 0) in auto_mount()
375 mntzone = zone_find_by_path(refstr_value(vfsp->vfs_mntpt)); in auto_mount()
440 fnip = vfstofni(vfsp); in auto_mount()
463 if (autofs_restrict_opts(vfsp, strbuff, sizeof (strbuff), &len) in auto_mount()
497 fnip->fi_mountvfs = vfsp; in auto_mount()
502 vfsp->vfs_bsize = AUTOFS_BLOCKSIZE; in auto_mount()
503 vfsp->vfs_fstype = autofs_fstype; in auto_mount()
514 vfsp->vfs_dev = autofs_dev; in auto_mount()
515 vfs_make_fsid(&vfsp->vfs_fsid, autofs_dev, autofs_fstype); in auto_mount()
516 vfsp->vfs_data = (void *)fnip; in auto_mount()
517 vfsp->vfs_bcount = 0; in auto_mount()
559 autofs_restrict_opts(vfsp, strbuff, sizeof (strbuff), &len) != 0) { in auto_mount()
637 rootfnp = auto_makefnnode(VDIR, vfsp, fnip->fi_path, cr, fngp); in auto_mount()
664 (void *)vfsp, (void *)rootvp, (void *)fnip, error)); in auto_mount()
687 (void *)vfsp, (void *)rootvp, (void *)fnip, error)); in auto_mount()
694 auto_unmount(vfs_t *vfsp, int flag, cred_t *cr) in auto_unmount() argument
701 fnip = vfstofni(vfsp); in auto_unmount()
702 AUTOFS_DPRINT((4, "auto_unmount vfsp %p fnip %p\n", (void *)vfsp, in auto_unmount()
705 if (secpolicy_fs_unmount(cr, vfsp) != 0) in auto_unmount()
714 ASSERT(vn_vfswlock_held(vfsp->vfs_vnodecovered)); in auto_unmount()
795 auto_root(vfs_t *vfsp, vnode_t **vpp) in auto_root() argument
797 *vpp = (vnode_t *)vfstofni(vfsp)->fi_rootvp; in auto_root()
800 AUTOFS_DPRINT((5, "auto_root: vfs %p, *vpp %p\n", (void *)vfsp, in auto_root()
809 auto_statvfs(vfs_t *vfsp, struct statvfs64 *sbp) in auto_statvfs() argument
813 AUTOFS_DPRINT((4, "auto_statvfs %p\n", (void *)vfsp)); in auto_statvfs()
816 sbp->f_bsize = vfsp->vfs_bsize; in auto_statvfs()
824 (void) cmpldev(&d32, vfsp->vfs_dev); in auto_statvfs()
826 (void) strcpy(sbp->f_basetype, vfssw[vfsp->vfs_fstype].vsw_name); in auto_statvfs()
827 sbp->f_flag = vf_to_stf(vfsp->vfs_flag); in auto_statvfs()