home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / networki / 816 < prev    next >
Encoding:
Text File  |  1992-07-29  |  2.4 KB  |  63 lines

  1. Newsgroups: comp.os.os2.networking
  2. Path: sparky!uunet!centerline!noc.near.net!vaxeline.ftp.com!tunes!backman
  3. From: backman@ftp.com  (Larry Backman)
  4. Subject: Re: NFS deamon trap D in tar
  5. Message-ID: <920729143102@tunes>
  6. Nntp-Software: PC/TCP NNTP
  7. Lines: 48        
  8. Sender: root@vaxeline.ftp.com (vaxeline.ftp.com root account)
  9. Nntp-Posting-Host: tunes.ftp.com
  10. Organization: FTP Software, Inc., Wakefield, MA
  11. References: <1992Jul28.155959.19528@watson.ibm.com> <ignacij.712354787@meishan.animal.uiuc.edu> <ekgermann.2.0@tga.com> <ignacij.712423602@meishan.animal.uiuc.edu>
  12. Date: Wed, 29 Jul 1992 14:31:01
  13.  
  14. In article <ignacij.712423602@meishan.animal.uiuc.edu> ignacij@meishan.animal.uiuc.edu (Ignacy Misztal) writes:
  15.  
  16.  >> >Someone told me to sync the time on the PC to the time on the Sun.  When I 
  17.  >> >did this, the performance improved dramtically and there were no more 
  18.  >> >spurts.
  19.  >> 
  20.  >> >Their reasoning was stale file  handles.  Experts?  Chime in.
  21.  >> 
  22.  >> 
  23.  
  24. Hmm...I'm not sure I understand this and I sure as hell understand NFS.
  25. A "stale handle" is a file handle which the client has sent to the
  26. server that no longer exists or is out of a server's cache.
  27. When an NFS implemnetation creates a file via a CREATE RPC it sticks its
  28. time/date concept in the files attributes; likewise when it writes to
  29. it closes it; etc. it alters the attributes with a SETATTR call.  If the
  30. time in the attributes associated with a handle was off perhaps the
  31. handle/attributes would get flushed from the NFS server's cache but it
  32. certainly should not be a stale.
  33.  
  34. Just because I didn't want to get embarassed I looked up stale handles:
  35.     "NFSERR_STALE
  36.  
  37.     the "fhandle" given in the arguments is invalid.  That is, the
  38.     file referred to by that file handle no longer exists, or
  39.     access to it has been revoked".
  40.  
  41. Back when I figured out the zen of stale handles I would typically see
  42. them from an editor that did the classic:
  43.     1. create     -> tmpfile
  44.     2. rename    file.x -> file.xyz
  45.     3. delete     file.x
  46.     4. rename tmpfile -> file.x.
  47.  
  48. using file.x's old handle (from #2) in # 4 will generate a stale handle.
  49.  
  50. Me thinks there is more to your problem that goes beyond setting the
  51. time and walking away.  Its going to bite you later....
  52.  
  53.  >> How do you sync the time on the PC? By simply setting time? To 
  54.  >> a second, minute?
  55.  
  56. Using Network time protocol against a time server.  We provide a setclock
  57. program; I'm sure IBM does the same.
  58.  
  59.  
  60. Larry Backman
  61. FTP Software
  62.  
  63.