A hard link associates a name (or path) with a stream file. Each stream file has a single file identifier (FID) and typically has only one name. Additional names can be associated with a stream file by creating multiple hard links to that stream file. This results in multiple names for the same FID and stream file. When changes are made for one name, the changes will also be available when the stream file is viewed by its other names. Since the FID, owner, authorities, journaling attributes, and permissions are associated with a stream file, these attributes will be identical when viewed for any one of the multiple hard links for a stream file. The FID and stream file exist until all hard links that reference the them are removed.
For journaled IFS objects, MIMIX supports the replication of multiple hard links. The replication of multiple hard links requires IFS objects to be configured for user journal replication. The following IBM commands and APIs are used to create multiple hard links:
-
CL Command: ADDLNK LNKTYPE(*HARD)
-
Shell Command: ln (without the -s option )
-
QlgLink() API
-
link() API