home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / protocol / nfs / 2237 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  2.6 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!seven-up.East.Sun.COM!tyger.Eng.Sun.COM!geoff
  2. From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
  3. Newsgroups: comp.protocols.nfs
  4. Subject: Re: PCNFS and symbolic links
  5. Date: 4 Sep 1992 19:29:54 GMT
  6. Organization: SunSelect
  7. Lines: 55
  8. Message-ID: <188dfiINNlka@seven-up.East.Sun.COM>
  9. References: <8cjn6r=.dbander@netcom.com> <1992Sep3.210904.8297@twg.com> <dbmn2=r.dbander@netcom.com> <AAROND.92Sep4083942@xibm.StorTek.com>
  10. NNTP-Posting-Host: tyger.east.sun.com
  11.  
  12. Quoth aarond@xibm.StorTek.com (Aaron Dailey) (in <AAROND.92Sep4083942@xibm.StorTek.com>):
  13. #And we have mount /project/lcp/src as a drive on PC-NFS, it won't be
  14. #able to find it.  If the symbolic link were to another point within
  15. #the mounted filesystem, it could find the file.  Geoff could give the
  16. #technical reason why.
  17.  
  18. A symbolic link can be viewed as a text-replacement mechanism.
  19. The value of the link is effectively substituted into the
  20. path at the point where the symbolic link occurs. For example,
  21. if you have a path
  22.     /a/b/c/d
  23. and within the directory /a the element b is a symbolic link with
  24. the value /x/y, the processing of the path would occur roughly
  25. as follows
  26.  
  27. Step    Current directory    Remaining path
  28.    1    <arbitrary>        /a/b/c/d
  29.                     The path begins / - absolute, so...
  30.    2    /            a/b/c/d
  31.                     Look up directory a in /
  32.    3    /a            b/c/d
  33.                     Look up symlink b in /a
  34.                     Substitute, giving /x/y/c/d
  35.    4    /a            /x/y/c/d
  36.                     The path begins / - absolute, so...
  37.    5    /            x/y/c/d
  38.                     Look up directory x in /
  39.    6    /x            y/c/d
  40.                     Look up directory y in /x
  41.    7    /x/y            c/d
  42.                     Look up directory c in /x/y
  43.    8    /x/y/c            d
  44.                     Look up file d in /x/y/c
  45.  
  46. At each step, the path resolution is relative to the DOS
  47. drive, so at steps 1 and 4 where we restart at the "top" of an
  48. absolute path, the absolute path is relative to the mount point.
  49.  
  50. You can play this game yourself,  using different values
  51. for the symbolic link.
  52.  
  53. #I believe that one of the other NFS client for PC vendors has a way
  54. #around this (FTP, B&W?).
  55.  
  56. B&W has a form of automount for such links, but I'm sure that Carl or
  57. Fred would acknowledge that in the absence of an RPC service which can
  58. report the full mount topology for a server, such a mechanism is a
  59. partial solution at best.
  60.  
  61. Geoff
  62. --
  63. Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
  64. -----------
  65. News software that enforces a four-line .signature limit is responsible for
  66. the fact that these postings just go on and on and on and seem to end in mid-
  67.