nentries =  MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_nentries; mapdata =  (MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_mapdata);
unentries =  MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_unentries; umapdata  = (MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_umapdata);
umap_getattr(v)	void *v;{	struct vop_getattr_args /* {		struct vnode *a_vp;		struct vattr *a_vap;		struct ucred *a_cred;		struct proc *a_p;	} */ *ap = v;	uid_t uid;	gid_t gid;	int error, tmpid, nentries, gnentries;	u_long (*mapdata)[2];	u_long (*gmapdata)[2];	struct vnode **vp1p;	struct vnodeop_desc *descp = ap->a_desc;	if ((error = umap_bypass(ap)) != 0)		return (error);	/* Requires that arguments be restored. */	ap->a_vap->va_fsid = ap->a_vp->v_mount->mnt_stat.f_fsid.val[0];	/*	 * Umap needs to map the uid and gid returned by a stat	 * into the proper values for this site.  This involves	 * finding the returned uid in the mapping information,	 * translating it into the uid on the other end,	 * and filling in the proper field in the vattr	 * structure pointed to by ap->a_vap.  The group	 * is easier, since currently all groups will be	 * translate to the NULLGROUP.	 */	/* Find entry in map */	uid = ap->a_vap->va_uid;	gid = ap->a_vap->va_gid;	if (umap_bug_bypass)		printf("umap_getattr: mapped uid = %d, mapped gid = %d\n", uid, 		    gid);	vp1p = VOPARG_OFFSETTO(struct vnode**, descp->vdesc_vp_offsets[0], ap);	nentries =  MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_nentries;	mapdata =  (MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_mapdata);	gnentries =  MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_gnentries;	gmapdata =  (MOUNTTOUMAPMOUNT((*vp1p)->v_mount)->info_gmapdata);	/* Reverse map the uid for the vnode.  Since it's a reverse		map, we can't use umap_mapids() to do it. */	tmpid = umap_reverse_findid(uid, mapdata, nentries);	if (tmpid != -1) {		ap->a_vap->va_uid = (uid_t) tmpid;		if (umap_bug_bypass)			printf("umap_getattr: original uid = %d\n", uid);	} else 		ap->a_vap->va_uid = (uid_t) NOBODY;	/* Reverse map the gid for the vnode. */	tmpid = umap_reverse_findid(gid, gmapdata, gnentries);	if (tmpid != -1) {		ap->a_vap->va_gid = (gid_t) tmpid;		if (umap_bug_bypass)			printf("umap_getattr: original gid = %d\n", gid);	} else		ap->a_vap->va_gid = (gid_t) NULLGROUP;		return (0);}