Question & Answer
What are the differences between IBM Rational ClearCase hardlink and softlink?
ClearCase supports both hardlink and softlink. Both are working the same way as the original UNIX implementation.
- A hardlink is an additional entry in a directory for an existing file.
Only one copy of the file exists on the harddisk. If you modify any copy, you modify all other copies. ClearCase does this at directory structure through the same inode and increases the reference count by 1.
- A softlink is like a pointer to an existing file.
The directory contains a path, relative or absolute, to the destination file.
When you use ClearCase, the way both links work depends of the type of view and the operating system.
- Under UNIX, hardlink and softlink work in the original way.
- Under Microsoft Windows
- In a dynamic view (MVFS), hardlink and softlink work the same way as under UNIX.
- In a snapshot view, ClearCase uses the Windows file system. Windows does not support hardlink or symlink. ClearCase creates a copy to simulate them. This means that checking out one copy will not update the other one in real-time. This happens during the view update.
In a ClearCase VOB, hardlinked elements have the same oid, pointer to the same file, but symlink will not.
19 February 2019