From aebbfa88f0633f8b1cb151c39deebd43919f026d Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 11 Dec 2002 02:38:53 +0000 Subject: 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 --- sys/nfs/nfs_vfsops.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/nfs/nfs_vfsops.c') 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); -- cgit v1.2.3