ibm-information-center/dist/eclipse/plugins/i5OS.ic.ifs_5.4.0.1/rzaaxlinkifs.htm

141 lines
11 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Link" />
<meta name="abstract" content="A link is a named connection between a directory and an object. A user or a program can tell the server where to find an object by specifying the name of a link to the object. A link can be used as a path name or as part of a path name." />
<meta name="description" content="A link is a named connection between a directory and an object. A user or a program can tell the server where to find an object by specifying the name of a link to the object. A link can be used as a path name or as part of a path name." />
<meta name="DC.subject" content="link, what is it?, why use" />
<meta name="keywords" content="link, what is it?, why use" />
<meta name="DC.Relation" scheme="URI" content="rzaaxbasics.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxhardlnk.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxsymlnk.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxrootlinks.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxopenlink.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxudfslink.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxliblinks.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxiasplinks.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxqdlslinks.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxoptlinks.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxntlinks.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxos4links.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxnfslink.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxsymlink_type2.htm" />
<meta name="DC.Relation" scheme="URI" content="rzaaxqnetlinks.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaaxlinkifs" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Link</title>
</head>
<body id="rzaaxlinkifs"><a name="rzaaxlinkifs"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Link</h1>
<div><p>A <dfn class="term">link</dfn> is a named connection
between a directory and an object. A user or a program can tell the server
where to find an object by specifying the name of a link to the object. A
link can be used as a path name or as part of a path name.</p>
<p>For users of directory-based file systems, it is convenient to think of
an object, such as a file, as something that has a name that identifies it
to the server. In fact, it is the directory path to the object that identifies
it. You can sometimes access an object by giving just the object's <span class="q">"name"</span>.
You can do this only because the system is designed to assume the directory
part of the path under certain conditions. The idea of a link takes advantage
of the reality that it is the directory path that identifies the object.
The name is given to the link rather than the object.</p>
<p>After you get used to the idea that the link has the name
rather than the object, you begin to see possibilities that were hidden before.
There can be multiple links to the same object. For example, two users can
share a file by having a link from each user's home directory to the file
(see <a href="rzaaxhomedir.htm#rzaaxhomedir">Home directory</a>). Certain types of
links can cross file systems, and can exist without an object existing.</p>
<p>There are two types of links: Hard link and Symbolic link. When using path
names in programs, you have a choice of using a hard link or a symbolic link.
Each type of link has advantages and disadvantages. The conditions under which
one type of link has an advantage over the other type is as follows:</p>
<div class="tablenoborder"><a name="rzaaxlinkifs__rzaaxlinkcmp"><!-- --></a><table cellpadding="4" cellspacing="0" summary="" id="rzaaxlinkifs__rzaaxlinkcmp" width="100%" frame="border" border="1" rules="all"><caption>Table 1. Comparison of
hard link and symbolic link</caption><thead align="left"><tr><th align="left" valign="bottom" width="33.429394812680115%" id="d0e84">Item</th>
<th align="left" valign="bottom" width="33.429394812680115%" id="d0e86">Hard link</th>
<th align="left" valign="bottom" width="33.14121037463977%" id="d0e88">Symbolic link</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="33.429394812680115%" headers="d0e84 ">Name resolution</td>
<td align="left" valign="top" width="33.429394812680115%" headers="d0e86 ">Faster. A hard link contains a
direct reference to the object.</td>
<td align="left" valign="top" width="33.14121037463977%" headers="d0e88 ">Slower. A symbolic link contains
a path name to the object, which must be resolved to find the object.</td>
</tr>
<tr><td align="left" valign="top" width="33.429394812680115%" headers="d0e84 ">Object existence</td>
<td align="left" valign="top" width="33.429394812680115%" headers="d0e86 ">Required. An object must exist
in order to create a hard link to it.</td>
<td align="left" valign="top" width="33.14121037463977%" headers="d0e88 ">Optional. A symbolic link can
be created when the object it refers to does not exist.</td>
</tr>
<tr><td align="left" valign="top" width="33.429394812680115%" headers="d0e84 ">Object deletion</td>
<td align="left" valign="top" width="33.429394812680115%" headers="d0e86 ">Restricted. All hard links to
an object must be unlinked (removed) to delete the object.</td>
<td align="left" valign="top" width="33.14121037463977%" headers="d0e88 ">Unrestricted. An object can be
deleted even if there are symbolic links referring to it.</td>
</tr>
<tr><td align="left" valign="top" width="33.429394812680115%" headers="d0e84 ">Static objects (attributes do
not change)</td>
<td align="left" valign="top" width="33.429394812680115%" headers="d0e86 ">Faster. For a static object, name
resolution is the primary performance concern. Name resolution is faster
when hard links are used.</td>
<td align="left" valign="top" width="33.14121037463977%" headers="d0e88 ">Slower. Name resolution is slower
when symbolic links are used.</td>
</tr>
<tr><td align="left" valign="top" width="33.429394812680115%" headers="d0e84 ">Scope</td>
<td align="left" valign="top" width="33.429394812680115%" headers="d0e86 ">Restricted. Hard links cannot
cross file systems.</td>
<td align="left" valign="top" width="33.14121037463977%" headers="d0e88 ">Unrestricted. Symbolic links can
cross file systems.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzaaxhardlnk.htm">Hard link</a></strong><br />
A <dfn class="term">hard link</dfn>, which is sometimes
just called a link, cannot exist unless it is linked to an actual object.</li>
<li class="ulchildlink"><strong><a href="rzaaxsymlnk.htm">Symbolic link</a></strong><br />
A <dfn class="term">symbolic link</dfn>,
which is also called a soft link, is a path name contained in a file. </li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaaxbasics.htm" title="This topic introduces the basic concepts of integrated file system, such as directory, link, path name, stream file, name continuity, extended attributes, and scanning support.">Integrated file system concepts</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzaaxrootlinks.htm" title="Multiple hard links to the same object are allowed in the root (/) file system. Symbolic links are fully supported.">Links in the "root" (/) file system</a></div>
<div><a href="rzaaxopenlink.htm" title="Multiple hard links to the same object are allowed in the QOpenSys file system. Symbolic links are fully supported.">Links in the QOpenSys file system</a></div>
<div><a href="rzaaxudfslink.htm" title="A user-defined file system (UDFS) allows multiple hard links to the same object and fully supports symbolic links.">Links in an integrated file system user-defined file system</a></div>
<div><a href="rzaaxliblinks.htm" title="Symbolic links cannot be created or stored in the QSYS.LIB file system.">Links in the QSYS.LIB file system</a></div>
<div><a href="rzaaxiasplinks.htm" title="Symbolic links cannot be created or stored in the Independent ASP QSYS.LIB file system.">Links in the independent ASP QSYS.LIB file system</a></div>
<div><a href="rzaaxqdlslinks.htm" title="Symbolic links cannot be created or stored in the QDLS file system.">Links in the QDLS file system</a></div>
<div><a href="rzaaxoptlinks.htm" title="The QOPT file system supports only one link to an object. Symbolic links cannot be created or stored in QOPT.">Links in the QOPT file system</a></div>
<div><a href="rzaaxntlinks.htm" title="The QNTC file system supports only one link to an object. You cannot create or store symbolic links in QNTC.">Links in the QNTC file system</a></div>
<div><a href="rzaaxos4links.htm" title="The QFileSvr.400 file system supports only one link to an object.">Links in the QFileSvr.400 file system</a></div>
<div><a href="rzaaxnfslink.htm" title="Generally, multiple hard links to the same object are allowed in the Network File System.">Links in the Network File System</a></div>
<div><a href="rzaaxsymlink_type2.htm" title="Symbolic links are objects within the integrated file system that contain a path to another object.">Tips: Symbolic link</a></div>
<div><a href="rzaaxqnetlinks.htm" title="The QNetWare file system supports only one link to an object. Symbolic links cannot be created or stored in QNetWare.">Links in the QNetWare file system</a></div>
</div>
</div>
</body>
</html>