afs_globalVFS = mp;
mp->vfs_bsize = 8192;
vfs_getnewfsid(mp);
+#ifdef AFS_FBSD70_ENV /* XXX 70? */
+ MNT_ILOCK(mp);
+ mp->mnt_flag &= ~MNT_LOCAL;
+ mp->mnt_kern_flag |= MNTK_MPSAFE; /* solid steel */
+#endif
mp->mnt_stat.f_iosize = 8192;
if (path != NULL)
strcpy(mp->mnt_stat.f_mntfromname, "AFS");
/* null terminated string "AFS" will fit, just leave it be. */
strcpy(mp->mnt_stat.f_fstypename, "afs");
+#ifdef AFS_FBSD70_ENV
+ MNT_IUNLOCK(mp);
+#endif
AFS_GUNLOCK();
afs_statfs(mp, &mp->mnt_stat, p);
+
return 0;
}
* the root vnode (this is just a guess right now).
* This has to be done outside the global lock.
*/
-#ifdef AFS_FBSD53_ENV
+#if defined(AFS_FBSD80_ENV)
+ /* do nothing */
+#elif defined(AFS_FBSD53_ENV)
vflush(mp, 1, (flags & MNT_FORCE) ? FORCECLOSE : 0, p);
#else
vflush(mp, 1, (flags & MNT_FORCE) ? FORCECLOSE : 0);
error = 0;
} else {
tryagain:
+#ifndef AFS_FBSD80_ENV
if (afs_globalVp) {
afs_PutVCache(afs_globalVp);
/* vrele() needed here or not? */
afs_globalVp = NULL;
}
-
+#endif
if (!(error = afs_InitReq(&treq, cr)) && !(error = afs_CheckInit())) {
tvp = afs_GetVCache(&afs_rootFid, &treq, NULL, NULL);
/* we really want this to stay around */