IBM Support

How does one create a hardlink with AFS files?

Question & Answer


Question

-------------------- I am attempting to create a hard link in AFS: ln test/mm ll ln: cannot create hard link `ll' to `test/mm': Invalid cross-device link The only way to create hard links is if the link is created in the same directory.

Answer

---------
AFS does not allow hard links (created with the UNIX ln command) between
files that reside in different directories, because in that case it is
unclear which of the directory's ACLs to associate with the link.

AFS also does not allow hard links to directories, in order to keep the
file system organized as a tree.

It is possible to create symbolic links (with the UNIX ln -s command)
between elements in two different AFS directories, or even between an
element in AFS and one in a machine's local UNIX file system. However,
you must not create a symbolic link to a file whose name begins with
either a number sign (#) or a percent sign (%) because the Cache Manager
interprets such links as a mount point to a regular or ReadWrite volume,
respectively.

[{"Product":{"code":"SSXMUG","label":"AFS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":null,"Platform":[{"code":"PF002","label":"AIX"}],"Version":"3.6","Edition":"All Editions","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Historical Number

55407

Document Information

Modified date:
15 June 2018

UID

swg21047089