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.
Historical Number
55407
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21047089