About symbolic links and version-extended pathnames

Technote (troubleshooting)


Problem(Abstract)

This technote explains why attempts to use a version-extended pathname in the form of <element name>@@<version> for an IBM® Rational® ClearCase® symbolic link will produce the error No such file or directory.

Symptom

Using a version-extended pathname when referencing a symbolic link reports error:
No such file or directory.

Here's an example of trying to see version details by describing the symbolic link using the version extended path of the file version it points to:

%>cleartool describe -long file@@/main/br1/br2/1
cleartool: Error: Unable to access "file@@/main/br1/br2/1": No such file or directory.



Cause

Symbolic links are not versioned and, hence, do not have version-extended pathnames.

Symlinks are not catalogued in the version history of the element. They serve only as a pointer to a target version, and allow you to create multiple access points to a single version. Review the ClearCase Command Reference Guide on the topic of ln (cleartool man ln) for more information.

Here's an example of trying to see version details by describing the symbolic link using the version extended path of the file version it points to:

%>cleartool describe -long file@@/main/br1/br2/1
cleartool: Error: Unable to access "file@@/main/br1/br2/1": No such file or directory.


Resolving the problem

You can describe a symbolic link using a non-version extended pathname as detailed below.

For example, if you have a link /vobs/jedi/xwing/yoda pointing to /vobs/jedi/yoda.txt:

  • The symlink can be described with a simple pathname, as follows:

    %>cleartool describe -long yoda
    symbolic link "yoda" -> ../yoda.txt
    created 29-Sep-05.09:51:58 by Jane Doe (jdoe.100@pet1)
    master replica: pet1@/vobs/jedi
    Protection:
    User : jdoe : rwx
    Group: UNIX:GID-100 : rwx
    Other: : rwx
  • The actual text file that the symlink points to can be described with a simple pathname or using its version-extended pathname:

    %>cleartool describe -long yoda.txt@@/main/br1/br2/1
    version "yoda.txt@@/main/br1/br2/1"
    created 18-Aug-05.14:22:08 by Jane Doe(jdoe.sybase@pet1)
    Element Protection:
    User : jdoe : r--
    Group: UNIX:GID-100 : r--
    Other: : ---
    element type: text_file
    predecessor version: /main/onyx/ring/0

Change request (RFE) RATLC00584686 has been opened requesting a -follow option for cleartool describe and other cleartool commands that will enable them to display the information about the target file that the link points to.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational ClearCase
VOB

Software version:

7.0, 2003.06.00

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1220890

Modified date:

2006-10-16

Translate my page

Machine Translation

Content navigation