diff options
author | 2002-12-11 02:38:52 +0000 | |
---|---|---|
committer | 2002-12-11 02:38:52 +0000 | |
commit | 9deaab3cb60edc8d793950d362ada737fa10483c (patch) | |
tree | 183607275217a9bac148d3e4c02a97a9e12225bf | |
parent | miod asked me to add this (diff) | |
download | wireguard-openbsd-9deaab3cb60edc8d793950d362ada737fa10483c.tar.xz wireguard-openbsd-9deaab3cb60edc8d793950d362ada737fa10483c.zip |
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
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 9 |
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); |