OLINK(8) — Maintenance
NAME
olink − optical file restore
SYNOPSIS
olink ofs [filename ...]
DESCRIPTION
olink is a command script used to restore missing or deleted files on an optical file system. ofs is the mount point of an optical file system.
For each filename specified, olink invokes ofind to discover all of the file index numbers ever associated with filename. If filename names an existing file, no action is taken. If more than one file index number is found associated with any filename, ls is invoked to display the attributes of each, and the user is requested to select one. filename is then linked to the associated file index using ln (or mv in the case of a directory).
The operation of this script depends upon a special feature of the optical file system daemon permitting files to be specified by index number. If the first character of an optical file name is a delete character (preceeded by \ if entered from the keyboard), the remainder of the file name string is interpreted as a decimal number specifying the file index. Thus, .../ofs/^?2 is a valid alternate name for the root directory of the optical file system containing the directory ofs. Since optical disk file space cannot be recovered and file index numbers are never reused, this form of reference remains valid even when all references to a file have been deleted from every directory in an optical file system. In particular, a name of this form can be passed as a parameter to a standard utility such as ln or mv to create a directory entry.
EXAMPLES
To restore a missing optical file: olink /ofs file
SEE ALSO
— 30 September 1990