diff options
author | Peter Wemm <peter@FreeBSD.org> | 1998-05-19 07:11:27 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1998-05-19 07:11:27 +0000 |
commit | fe6c0d4599e2990d44d01213d617ea031bef19d1 (patch) | |
tree | a2dea176b28cd6c76fd6424c1ae7c53b611ee0f2 /sys/nfs/nfs_bio.c | |
parent | d5440753aa6543f7c6dbf3db87d1be0805a806be (diff) | |
download | src-fe6c0d4599e2990d44d01213d617ea031bef19d1.tar.gz src-fe6c0d4599e2990d44d01213d617ea031bef19d1.zip |
Allow control of the attribute cache timeouts at mount time.
We had run out of bits in the nfs mount flags, I have moved the internal
state flags into a seperate variable. These are no longer visible via
statfs(), but I don't know of anything that looks at them.
Notes
Notes:
svn path=/head/; revision=36176
Diffstat (limited to 'sys/nfs/nfs_bio.c')
-rw-r--r-- | sys/nfs/nfs_bio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index 46020e573746..544ba3219153 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95 - * $Id: nfs_bio.c,v 1.53 1998/03/08 09:57:54 julian Exp $ + * $Id: nfs_bio.c,v 1.54 1998/03/28 16:05:05 steve Exp $ */ @@ -257,7 +257,8 @@ nfs_bioread(vp, uio, ioflag, cred, getpages) if (uio->uio_offset < 0) return (EINVAL); p = uio->uio_procp; - if ((nmp->nm_flag & (NFSMNT_NFSV3 | NFSMNT_GOTFSINFO)) == NFSMNT_NFSV3) + if ((nmp->nm_flag & NFSMNT_NFSV3) != 0 && + (nmp->nm_state & NFSSTA_GOTFSINFO) == 0) (void)nfs_fsinfo(nmp, vp, cred, p); biosize = vp->v_mount->mnt_stat.f_iosize; /* @@ -636,7 +637,8 @@ nfs_write(ap) np->n_flag &= ~NWRITEERR; return (np->n_error); } - if ((nmp->nm_flag & (NFSMNT_NFSV3 | NFSMNT_GOTFSINFO)) == NFSMNT_NFSV3) + if ((nmp->nm_flag & NFSMNT_NFSV3) != 0 && + (nmp->nm_state & NFSSTA_GOTFSINFO) == 0) (void)nfs_fsinfo(nmp, vp, cred, p); if (ioflag & (IO_APPEND | IO_SYNC)) { if (np->n_flag & NMODIFIED) { |