• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/nfs/

Lines Matching refs:mp

465 nfs_vfs_getattr(mount_t mp, struct vfs_attr *fsap, vfs_context_t ctx)
471 if (!(nmp = VFSTONFS(mp)))
539 nfsm_assert(error, VFSTONFS(mp), ENXIO);
833 mount_t mp = NULL;
916 if ((error = nfs_mount_diskless(&nd.nd_root, "/", flags, &vp, &mp, ctx)))
918 if ((error = nfs_mount_diskless(&nd.nd_root, "/", MNT_ROOTFS, &vp, &mp, ctx)))
941 vfs_unbusy(mp);
942 mount_list_add(mp);
984 mount_t mp;
988 if ((error = vfs_rootmountalloc("nfs", ndmntp->ndm_host, &mp))) {
993 mp->mnt_flag |= mntflag;
995 mp->mnt_flag &= ~MNT_RDONLY;
1016 if ((error = mountnfs(&args, mp, m, ctx, vpp))) {
1018 // XXX vfs_rootmountfailed(mp);
1020 mp->mnt_vtable->vfc_refcount--;
1022 vfs_unbusy(mp);
1023 mount_lock_destroy(mp);
1025 mac_mount_label_destroy(mp);
1027 FREE_ZONE(mp, sizeof(struct mount), M_MOUNT);
1030 *mpp = mp;
1049 mount_t mp;
1124 mp = _MALLOC_ZONE((u_long)sizeof(struct mount), M_MOUNT, M_WAITOK);
1125 if (!mp) {
1131 bzero((char *)mp, (u_long)sizeof(struct mount));
1134 mp->mnt_maxreadcnt = mp->mnt_maxwritecnt = MAXPHYS;
1135 mp->mnt_segreadcnt = mp->mnt_segwritecnt = 32;
1136 mp->mnt_ioflags = 0;
1137 mp->mnt_realrootvp = NULLVP;
1138 mp->mnt_authcache_ttl = CACHED_LOOKUP_RIGHT_TTL;
1140 mount_lock_init(mp);
1141 TAILQ_INIT(&mp->mnt_vnodelist);
1142 TAILQ_INIT(&mp->mnt_workerqueue);
1143 TAILQ_INIT(&mp->mnt_newvnodes);
1144 (void)vfs_busy(mp, LK_NOWAIT);
1145 TAILQ_INIT(&mp->mnt_vnodelist);
1149 mp->mnt_vtable = vfsp;
1150 mp->mnt_op = vfsp->vfc_vfsops;
1151 // mp->mnt_stat.f_type = vfsp->vfc_typenum;
1152 mp->mnt_flag = mntflag;
1153 mp->mnt_flag |= vfsp->vfc_flags & MNT_VISFLAGMASK;
1154 strncpy(mp->mnt_vfsstat.f_fstypename, vfsp->vfc_name, MFSNAMELEN-1);
1155 vp->v_mountedhere = mp;
1156 mp->mnt_vnodecovered = vp;
1157 mp->mnt_vfsstat.f_owner = kauth_cred_getuid(kauth_cred_get());
1158 (void) copystr(mntname, mp->mnt_vfsstat.f_mntonname, MNAMELEN - 1, 0);
1159 (void) copystr(ndmntp->ndm_host, mp->mnt_vfsstat.f_mntfromname, MNAMELEN - 1, 0);
1161 mac_mount_label_init(mp);
1162 mac_mount_label_associate(ctx, mp);
1184 if ((error = mountnfs(&args, mp, m, ctx, &vp))) {
1189 vfs_unbusy(mp);
1190 mount_lock_destroy(mp);
1192 mac_mount_label_destroy(mp);
1194 FREE_ZONE(mp, sizeof (struct mount), M_MOUNT);
1198 *mpp = mp;
1211 nfs_vfs_mount(mount_t mp, vnode_t vp, user_addr_t data, vfs_context_t ctx)
1287 mntfrom = &vfs_statfs(mp)->f_mntfromname[0];
1299 error = mountnfs(&args, mp, nam, ctx, &vp);
1500 mount_t mp,
1518 if (vfs_flags(mp) & MNT_UPDATE) {
1519 nmp = VFSTONFS(mp);
1535 vfs_setfsprivate(mp, nmp);
1567 vfs_getnewfsid(mp);
1568 nmp->nm_mountp = mp;
1569 vfs_setauthopaque(mp);
1705 mp->mnt_vtable->vfc_threadsafe = TRUE;
1738 sbp = vfs_statfs(mp);
1771 vfs_setauthopaqueaccess(mp);
1813 mount_t mp,
1824 nmp = VFSTONFS(mp);
1852 error = vflush(mp, vp, SKIPSWAP | flags);
1854 error = vflush(mp, NULLVP, flags); /* locks vp in the process */
1858 error = vflush(mp, vp, flags);
1872 vflush(mp, NULLVP, FORCECLOSE);
1880 vfs_setfsprivate(mp, 0); /* don't want to end up using stale vp */
1967 nfs_vfs_root(mount_t mp, vnode_t *vpp, __unused vfs_context_t ctx)
1974 nmp = VFSTONFS(mp);
1994 __unused mount_t mp,
2281 nfs_vfs_quotactl(mount_t mp, int cmds, uid_t uid, caddr_t datap, vfs_context_t ctx)
2288 if (!(nmp = VFSTONFS(mp)))
2317 if (vfs_busy(mp, LK_NOWAIT))
2321 vfs_unbusy(mp);
2357 nfs_vfs_sync(mount_t mp, int waitfor, vfs_context_t ctx)
2365 vnode_iterate(mp, 0, nfs_sync_callout, &cargs);
2377 __unused mount_t mp,
2392 __unused mount_t mp,
2423 __unused mount_t mp,
2442 mount_t mp;
2478 mp = vfs_getvfs(&user_vc.vc_fsid);
2483 mp = vfs_getvfs(&vc.vc_fsid);
2485 if (mp == NULL)
2487 nmp = VFSTONFS(mp);