home *** CD-ROM | disk | FTP | other *** search
- 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
- From: geoff@tyger.Eng.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top)
- Newsgroups: comp.protocols.nfs
- Subject: Re: PCNFS and symbolic links
- Date: 4 Sep 1992 19:29:54 GMT
- Organization: SunSelect
- Lines: 55
- Message-ID: <188dfiINNlka@seven-up.East.Sun.COM>
- References: <8cjn6r=.dbander@netcom.com> <1992Sep3.210904.8297@twg.com> <dbmn2=r.dbander@netcom.com> <AAROND.92Sep4083942@xibm.StorTek.com>
- NNTP-Posting-Host: tyger.east.sun.com
-
- Quoth aarond@xibm.StorTek.com (Aaron Dailey) (in <AAROND.92Sep4083942@xibm.StorTek.com>):
- #And we have mount /project/lcp/src as a drive on PC-NFS, it won't be
- #able to find it. If the symbolic link were to another point within
- #the mounted filesystem, it could find the file. Geoff could give the
- #technical reason why.
-
- A symbolic link can be viewed as a text-replacement mechanism.
- The value of the link is effectively substituted into the
- path at the point where the symbolic link occurs. For example,
- if you have a path
- /a/b/c/d
- and within the directory /a the element b is a symbolic link with
- the value /x/y, the processing of the path would occur roughly
- as follows
-
- Step Current directory Remaining path
- 1 <arbitrary> /a/b/c/d
- The path begins / - absolute, so...
- 2 / a/b/c/d
- Look up directory a in /
- 3 /a b/c/d
- Look up symlink b in /a
- Substitute, giving /x/y/c/d
- 4 /a /x/y/c/d
- The path begins / - absolute, so...
- 5 / x/y/c/d
- Look up directory x in /
- 6 /x y/c/d
- Look up directory y in /x
- 7 /x/y c/d
- Look up directory c in /x/y
- 8 /x/y/c d
- Look up file d in /x/y/c
-
- At each step, the path resolution is relative to the DOS
- drive, so at steps 1 and 4 where we restart at the "top" of an
- absolute path, the absolute path is relative to the mount point.
-
- You can play this game yourself, using different values
- for the symbolic link.
-
- #I believe that one of the other NFS client for PC vendors has a way
- #around this (FTP, B&W?).
-
- B&W has a form of automount for such links, but I'm sure that Carl or
- Fred would acknowledge that in the absence of an RPC service which can
- report the full mount topology for a server, such a mechanism is a
- partial solution at best.
-
- Geoff
- --
- Geoff Arnold, PC-NFS architect, Sun Select. (geoff.arnold@East.Sun.COM)
- -----------
- News software that enforces a four-line .signature limit is responsible for
- the fact that these postings just go on and on and on and seem to end in mid-
-