freebsd-dev/sys/nfs
Doug Rabson 5d81e553a2 I believe that the following fix to nfs_vnops.c should do the trick w.r.t.
the problem "when a file is truncated on the server after being written on
a client under NFSv3, the client doesn't see the size drop to zero".
(As you noted, the problem is that NMODIFIED wasn't being cleared by nfs_close
 when it flushed the buffers. After checking through the code, the only place
 where NMODIFIED was used to test for the possibility of dirty blocks was in
 nfs_setattr(). The two cases are safe to do when there aren't dirty blocks,
 so I just took out the tests. Unfortunately, testing for
 v_dirtyblkhd.lh_first being non-null is not sufficient, since there are
 times when the code moves blocks to the clean list and then back to the
 dirty list.)

Submitted by:	rick@snowhite.cis.uoguelph.ca
1995-07-13 17:55:12 +00:00
..
nfs_bio.c Use a consistent blocksize for sizing bufs to avoid panicing the bio system. 1995-07-07 11:01:31 +00:00
nfs_common.c NOTE: libkvm, w, ps, 'top', and any other utility which depends on struct 1995-07-13 08:48:48 +00:00
nfs_common.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfs_node.c Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfs_nqlease.c Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfs_serv.c 1) Converted v_vmdata to v_object. 1995-06-28 12:01:13 +00:00
nfs_socket.c Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfs_srvcache.c Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfs_subs.c NOTE: libkvm, w, ps, 'top', and any other utility which depends on struct 1995-07-13 08:48:48 +00:00
nfs_syscalls.c Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfs_vfsops.c Use a consistent blocksize for sizing bufs to avoid panicing the bio system. 1995-07-07 11:01:31 +00:00
nfs_vnops.c I believe that the following fix to nfs_vnops.c should do the trick w.r.t. 1995-07-13 17:55:12 +00:00
nfs.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsdiskless.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsm_subs.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsmount.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsnode.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsproto.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsrtt.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsrvcache.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nfsv2.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
nqnfs.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
rpcv2.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00
xdr_subs.h Changes to support version 3 of the NFS protocol. 1995-06-27 11:07:30 +00:00