Hard Link - Limitations of Hard Links

Limitations of Hard Links

To prevent endless recursion, most modern operating systems don't allow hard links on directories. In addition, hard links on directories would lead to inconsistency on parent directory entries. A notable exception to this is Mac OS X v10.5 (Leopard) and newer, which use hard links on directories for the Time Machine backup mechanism only. Symbolic links and NTFS junction points are generally used instead for this purpose.

Hard links can only be created to files on the same volume. If a link to a file on a different volume is needed, it may be created with a symbolic link.

The maximum number of hard links to a single file is limited by the size of the reference counter: with NTFS this is limited to 1023 because a 10 bit field is used for this purpose. On Unix-like systems the counter is usually machine-word-sized (32 or 64-bit: 4,294,967,295 or 18,446,744,073,709,551,615 links, respectively), though in some filesystems such as btrfs the number of hard links is limited more strictly by their on-disk format.

Read more about this topic:  Hard Link

Famous quotes containing the words limitations, hard and/or links:

    That all may be so, but when I begin to exercise that power I am not conscious of the power, but only of the limitations imposed on me.
    William Howard Taft (1857–1930)

    Everyone judges plays as if they were very easy to write. They don’t know that it is hard to write a good play, and twice as hard and tortuous to write a bad one.
    Anton Pavlovich Chekhov (1860–1904)

    I’ve gradually risen from lower-class background to lower-class foreground.
    Marvin Cohen, U.S. author and humorist. Baseball the Beautiful, Links Books (1970)