summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-12-11 02:38:53 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-12-11 02:38:53 +0000
commitaebbfa88f0633f8b1cb151c39deebd43919f026d (patch)
treeb1b7b6895f9682276509199ce15edff9e98d2551 /sys
parent629070e181ae4c5f8044a0d0d434296b6eb53c64 (diff)
in mountroot:
check system clock against root atime, not mtime, since the later does not change that often and is a bad mark to sync unto. remove a bogus splnet() i've put way back in 96 w/ v3 integration. miod@ tested on diskless sparc and sparc64, mickey@ on hppa
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_vfsops.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index d4f2cf0abc8..b89b7070897 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.48 2002/03/14 01:27:13 millert Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.49 2002/12/11 02:38:52 mickey Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
/*
@@ -300,17 +300,12 @@ nfs_mountroot()
/* Get root attributes (for the time). */
error = VOP_GETATTR(rootvp, &attr, procp->p_ucred, procp);
if (error) panic("nfs_mountroot: getattr for root");
- n = attr.va_mtime.tv_sec;
+ n = attr.va_atime.tv_sec;
#ifdef DEBUG
printf("root time: 0x%lx\n", n);
#endif
inittodr(n);
- /*
- * XXX splnet, so networks will receive...
- */
- splnet();
-
#ifdef notyet
/* Set up swap credentials. */
proc0.p_ucred->cr_uid = ntohl(nd.swap_ucred.cr_uid);