Lines Matching refs:vfsp
223 static int hsfs_mount(struct vfs *vfsp, struct vnode *mvp,
225 static int hsfs_unmount(struct vfs *vfsp, int, struct cred *cr);
226 static int hsfs_root(struct vfs *vfsp, struct vnode **vpp);
227 static int hsfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp);
228 static int hsfs_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp);
231 static int hs_mountfs(struct vfs *vfsp, dev_t dev, char *path,
233 static int hs_getrootvp(struct vfs *vfsp, struct hsfs *fsp, size_t pathsize);
286 hsfs_mount(struct vfs *vfsp, struct vnode *mvp, in hsfs_mount() argument
296 if ((error = secpolicy_fs_mount(cr, mvp, vfsp)) != 0) in hsfs_mount()
324 if (vfs_optionisset(vfsp, HOPT_NOMAPLCASE, NULL)) in hsfs_mount()
326 if (vfs_optionisset(vfsp, HOPT_NOTRAILDOT, NULL)) in hsfs_mount()
328 if (vfs_optionisset(vfsp, HOPT_NRR, NULL)) in hsfs_mount()
330 if (vfs_optionisset(vfsp, HOPT_NOJOLIET, NULL)) in hsfs_mount()
332 if (vfs_optionisset(vfsp, HOPT_JOLIETLONG, NULL)) in hsfs_mount()
334 if (vfs_optionisset(vfsp, HOPT_NOVERS2, NULL)) in hsfs_mount()
342 error = hs_getmdev(vfsp, uap->spec, uap->flags, &dev, &mode, cr); in hsfs_mount()
359 error = hs_mountfs(vfsp, dev, dpn.pn_path, mode, flags, cr, 0); in hsfs_mount()
367 struct vfs *vfsp, in hsfs_unmount() argument
374 if (secpolicy_fs_unmount(cr, vfsp) != 0) in hsfs_unmount()
384 fsp = VFS_TO_HSFS(vfsp); in hsfs_unmount()
390 if (hs_synchash(vfsp)) in hsfs_unmount()
435 hsfs_root(struct vfs *vfsp, struct vnode **vpp) in hsfs_root() argument
437 *vpp = (VFS_TO_HSFS(vfsp))->hsfs_rootvp; in hsfs_root()
444 hsfs_statvfs(struct vfs *vfsp, struct statvfs64 *sbp) in hsfs_statvfs() argument
449 fsp = VFS_TO_HSFS(vfsp); in hsfs_statvfs()
453 sbp->f_bsize = vfsp->vfs_bsize; in hsfs_statvfs()
462 (void) cmpldev(&d32, vfsp->vfs_dev); in hsfs_statvfs()
464 (void) strcpy(sbp->f_basetype, vfssw[vfsp->vfs_fstype].vsw_name); in hsfs_statvfs()
465 sbp->f_flag = vf_to_stf(vfsp->vfs_flag); in hsfs_statvfs()
482 hsfs_vget(struct vfs *vfsp, struct vnode **vpp, struct fid *fidp) in hsfs_vget() argument
489 fsp = (struct hsfs *)VFS_TO_HSFS(vfsp); in hsfs_vget()
502 (uint_t)fid->hf_dir_off, vfsp)) == NULL) { in hsfs_vget()
511 vfsp, vpp); in hsfs_vget()
569 struct vfs *vfsp, in hs_mountfs() argument
727 fsp->hsfs_vfs = vfsp; in hs_mountfs()
734 vfsp->vfs_data = (caddr_t)fsp; in hs_mountfs()
735 vfsp->vfs_dev = dev; in hs_mountfs()
736 vfsp->vfs_fstype = hsfsfstype; in hs_mountfs()
737 vfsp->vfs_bsize = fsp->hsfs_vol.lbn_size; /* %% */ in hs_mountfs()
738 vfsp->vfs_fsid.val[0] = fsid; in hs_mountfs()
739 vfsp->vfs_fsid.val[1] = hsfsfstype; in hs_mountfs()
741 if (!hs_getrootvp(vfsp, fsp, pathbufsz)) { in hs_mountfs()
773 (vfs_optionisset(vfsp, HOPT_JOLIET, NULL) && has_joliet) || in hs_mountfs()
774 (vfs_optionisset(vfsp, HOPT_VERS2, NULL) && has_vers2); in hs_mountfs()
777 (vfs_optionisset(vfsp, HOPT_JOLIET, NULL) && has_joliet); in hs_mountfs()
798 vfsp->vfs_bsize = fsp->hsfs_vol.lbn_size; in hs_mountfs()
805 vfsp->vfs_bsize = fsp->hsfs_vol.lbn_size; in hs_mountfs()
819 if (!hs_getrootvp(vfsp, fsp, pathbufsz)) { in hs_mountfs()
857 ASSERT(vfs_optionisset(vfsp, HOPT_RR, NULL)); in hs_mountfs()
858 vfs_clearmntopt(vfsp, HOPT_VERS2); in hs_mountfs()
859 vfs_clearmntopt(vfsp, HOPT_JOLIET); in hs_mountfs()
872 vfs_clearmntopt(vfsp, HOPT_RR); in hs_mountfs()
873 vfs_clearmntopt(vfsp, HOPT_VERS2); in hs_mountfs()
874 vfs_clearmntopt(vfsp, HOPT_JOLIET); in hs_mountfs()
885 vfs_setmntopt(vfsp, HOPT_VERS2, NULL, 0); in hs_mountfs()
886 vfs_clearmntopt(vfsp, HOPT_RR); in hs_mountfs()
887 vfs_clearmntopt(vfsp, HOPT_JOLIET); in hs_mountfs()
901 vfs_setmntopt(vfsp, HOPT_JOLIET, NULL, 0); in hs_mountfs()
902 vfs_clearmntopt(vfsp, HOPT_RR); in hs_mountfs()
903 vfs_clearmntopt(vfsp, HOPT_VERS2); in hs_mountfs()
955 struct vfs *vfsp, in hs_getrootvp() argument
972 (uint_t)0, vfsp, &fsp->hsfs_rootvp)) { in hs_getrootvp()
982 fsp->hsfs_vol.root_dir.ext_lbn, 0, vfsp); in hs_getrootvp()
1340 hs_getmdev(struct vfs *vfsp, char *fspec, int flags, dev_t *pdev, mode_t *mode, in hs_getmdev() argument
1362 error = vfs_get_lofi(vfsp, &lvp); in hs_getmdev()
1402 if (vfs_devmounting(dev, vfsp)) in hs_getmdev()
1457 hsfs_mountroot(struct vfs *vfsp, enum whymountroot why) in hsfs_mountroot() argument
1472 vfsp->vfs_dev = rootdev; in hsfs_mountroot()
1473 vfsp->vfs_flag |= VFS_RDONLY; in hsfs_mountroot()
1480 error = vfs_lock(vfsp); in hsfs_mountroot()
1486 error = hs_mountfs(vfsp, rootdev, "/", mode, 1, CRED(), 1); in hsfs_mountroot()
1493 vfs_unlock(vfsp); in hsfs_mountroot()
1501 vfs_add((struct vnode *)0, vfsp, in hsfs_mountroot()
1502 (vfsp->vfs_flag & VFS_RDONLY) ? MS_RDONLY : 0); in hsfs_mountroot()
1503 vfs_unlock(vfsp); in hsfs_mountroot()
1504 fsp = VFS_TO_HSFS(vfsp); in hsfs_mountroot()