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 of, limitations, hard and/or links:

    The motion picture made in Hollywood, if it is to create art at all, must do so within such strangling limitations of subject and treatment that it is a blind wonder it ever achieves any distinction beyond the purely mechanical slickness of a glass and chromium bathroom.
    Raymond Chandler (1888–1959)

    Growing up means letting go of the dearest megalomaniacal dreams of our childhood. Growing up means knowing they can’t be fulfilled. Growing up means gaining the wisdom and skills to get what we want within the limitations imposed by reality—a reality which consists of diminished powers, restricted freedoms and, with the people we love, imperfect connections.
    Judith Viorst (20th century)

    Monday’s child is fair in face,
    Tuesday’s child is full of grace,
    Wednesday’s child is full of woe,
    Thursday’s child has far to go,
    Friday’s child is loving and giving,
    Saturday’s child works hard for its living;
    And a child that is born on a Christmas day,
    Is fair and wise, good and gay.
    Anonymous. Quoted in Traditions, Legends, Superstitions, and Sketches of Devonshire, vol. 2, ed. Anna E.K.S. Bray (1838)

    Nor stony tower, nor walls of beaten brass,
    Nor airless dungeon, nor strong links of iron,
    Can be retentive to the strength of spirit.
    William Shakespeare (1564–1616)