Lines Matching refs:mp
152 static int iso_mountfs(struct vnode *devvp, struct mount *mp, struct user_iso_args *argp,
163 cd9660_mountroot(mount_t mp, vnode_t rvp, vfs_context_t context)
173 if ((error = iso_mountfs(rvp, mp, &args, context)))
176 (void)cd9660_statfs(mp, vfs_statfs(mp), context);
187 cd9660_mount(mount_t mp, vnode_t devvp, user_addr_t data, vfs_context_t context)
207 if (vfs_isrdwr(mp))
214 if (vfs_isupdate(mp)) {
215 imp = VFSTOISOFS(mp);
219 if ( !vfs_isupdate(mp))
220 error = iso_mountfs(devvp, mp, &args, context);
230 vfs_clearflags(mp, MNT_DOVOLFS);
248 cd9660_phys_device(mount_t mp, vfs_context_t context)
257 sfs = vfs_statfs(mp);
347 iso_mountfs(struct vnode *devvp, struct mount *mp, struct user_iso_args *argp,
367 if (vfs_isrdwr(mp))
371 vfs_setlocklocal(mp);
542 vfs_setfsprivate(mp, (void *)isomp);
543 vfs_statfs(mp)->f_fsid.val[0] = (long)dev;
544 vfs_statfs(mp)->f_fsid.val[1] = vfs_typenum(mp);
545 vfs_setmaxsymlen(mp, 0);
546 vfs_setflags(mp, MNT_LOCAL);
548 isomp->im_mountp = mp;
661 isomp->phys_devvp = cd9660_phys_device(mp, context);
665 (void) cd9660_statfs(mp, vfs_statfs(mp), context);
686 vfs_setfsprivate(mp, (void *)0);
697 cd9660_start(__unused struct mount *mp, __unused int flags,
707 cd9660_unmount(struct mount *mp, int mntflags, vfs_context_t context)
718 if ( (error = vflush(mp, NULLVP, flags)) && !force )
721 isomp = VFSTOISOFS(mp);
745 cd9660_root(struct mount *mp, struct vnode **vpp, __unused vfs_context_t context)
747 struct iso_mnt *imp = VFSTOISOFS(mp);
756 return (cd9660_vget_internal(mp, ino, vpp, NULL, NULL,
765 cd9660_statfs(struct mount *mp, struct vfsstatfs *sbp,
770 isomp = VFSTOISOFS(mp);
807 int cd9660_vfs_getattr(struct mount *mp, struct vfs_attr *fsap, __unused vfs_context_t context)
810 struct vfsstatfs *stats = vfs_statfs(mp);
812 imp = VFSTOISOFS(mp);
908 cd9660_sync(__unused struct mount *mp, __unused int waitfor,
932 cd9660_fhtovp(mount_t mp, int fhlen, unsigned char *fhp, vnode_t *vpp, vfs_context_t context)
947 if ( (error = VFS_VGET(mp, (ino64_t)ntohl(ifhp->ifid_ino), &nvp, context)) ) {
1048 cd9660_vget(struct mount *mp, ino64_t ino, struct vnode **vpp, __unused vfs_context_t context)
1057 return ( cd9660_vget_internal( mp, (ino_t)ino, vpp, NULL, NULL,
1062 cd9660_vget_internal(mount_t mp, ino_t ino, vnode_t *vpp, vnode_t dvp,
1077 imp = VFSTOISOFS(mp);
1081 if (mp->mnt_kern_flag & MNTK_UNMOUNT)
1334 vfsp.vnfs_mp = mp;