NFS client patch for 2.0

Olaf Kirch (ok@daveg.com)
Thu, 13 Jun 1996 18:37:57 +0200


Hi,

below is a small patch that hopefully solves some of the
NFS problems people have been seeing in 2.0.0, specifically:

* Read failures after seeing messages like
`nfs_rpc_verify: RPC call failed: 5.' Since the time I
implemented readahead, the retry logic in generic_file_read
was changed, and I didn't notice it. nfsiod is now
doing the retries for transient RPC failures itself.

* nfs_refresh_inode messages on writes. Bruce Janson
sent me a packet snoop that seems to suggest that
Solaris 2.5 sends crap attributes in some write responses.
The patch makes nfs_file_write ignore bogus attributes.
I would be surprised however, if this change solved
Ed Tuinder's truncated file write problem; I'm still
thinking about that one.

Please try out the patch if you've been having any of these
problems, and let me know if it helps.

I'll be off for two weeks starting next week, so be quick:-)

Cheers
Olaf
------------------------------------------------------------------
begin 666 nfsclnt-2.0.0.diff.gz
M'XL(`+@9P#$``Z5:;7/;N!'^3/T*Y#K)B9(H2[(EQ]+9C:_GY-Q+[(SM=#)M
M;S@T"5H<4R2/+W;<F_SW[BX`$J0H66XSCD0"V`6P+\\N%O("WV=6D;*](DOW
MLM3="X.H^+871&Y8>%R^17YF^]EPR;9U=BS+VHV-\2F.V-^+B+%]-A[/Q]/Y
M9,;&1T>S3K_?WSJ'<;,LB'(,E+/Y_G1^,!:4[]XQZV@V.&1]^GSWKL/XMYRG
M$0NBG"%]DL:NG7+'@X\_"I[EW2Q/"S=G:>+:00R-K#=@L@T),IX^\!0:.\R`
M?WJ7O\2Q190%=Q'W6!A'=RSV_8SG:G"]SXV+*!\PVR[V)ZQW6_CFHF-M65\2
M/K6L#HCZ+R:J;<EW\CPE1KIT>CA\"4QXVJ7W9$#MR)Q[1<K+U[O468D7D$P6
MQ)'<+K84@2>Z[M1#[RZ-BR1KFPW(`_])S@8#O%WM,(B]S79(G3O9(8TLK8G-
MV&0TGQS.1\_;89U2V.%H-)\>:78XF($92BO\B\?](.+,_GA^\>6K??'^^OSR
M%_O7#H,NR9S])+B#8++8O1\N3SK]9I_R@!-!Z`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