home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / nfs / 3223 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.8 KB

  1. Xref: sparky comp.protocols.nfs:3223 comp.sys.sun.admin:10809
  2. Newsgroups: comp.protocols.nfs,comp.sys.sun.admin
  3. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!news.service.uci.edu!ucivax!cwi!bob
  4. From: bob@cwi.com (Bob Parker )
  5. Subject: NFS automounter problems
  6. Message-ID: <C1HDC1.6Ex@cwi.com>
  7. Organization: CaseWare Inc.
  8. Date: Tue, 26 Jan 1993 21:36:00 GMT
  9. Lines: 33
  10.  
  11. I posted this before, and got no response, but we were having problems
  12. with our news system, so I'll try again in case it never went out...
  13.  
  14.  
  15. Does anyone have an elegent solution to coexisting with the automounter?
  16.  
  17. We have a software product that does 'pwd' and getwd() and uses 
  18. that path for various things, sometimes the path is even passed to 
  19. programs on other machines.  This is fine if both machines have the path 
  20. NFS mounted normally, but the automounter really throws a monkey wrench 
  21. into things.  
  22.  
  23. Since the path returned by getwd() is the 'real' path, you get /tmp_mnt/...
  24. for automounted directories.  Since we use the getwd() path, we don't access
  25. the files thru the automounter mapped pathnames, so the automounter is not
  26. aware that we are accessing files under it's control.  Since the automounter
  27. unmounts the files after a period of inactivity, the path that worked fine
  28. becomes invalid, possibly at very inopportune times.
  29.  
  30. It seems like we need something like getwd() but that gives us the path
  31. that is controlled by the automounter (so the automounter knows that the
  32. files are being accessed), rather than the 'real' path.
  33. Is there such a beast?
  34.  
  35. Any other ideas?
  36.  
  37. Thanks in advance for any help.
  38.  
  39. -- 
  40. =======================================================
  41. ||  Bob Parker       ||                              ||        
  42. ||  CaseWare, Inc    || The floggings will continue  || 
  43. ||  bob@cwi.com      ||    until morale improves!    || 
  44.