ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzau8_5.4.0.1/standardattributes.htm

95 lines
5.7 KiB
HTML

<?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="reference" />
<meta name="DC.Title" content="Using standard attributes" />
<meta name="abstract" content="Learn about automatically generated directory attributes of the optical file system." />
<meta name="description" content="Learn about automatically generated directory attributes of the optical file system." />
<meta name="DC.Relation" scheme="URI" content="hfs.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="standardattributes" />
<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>Using standard attributes</title>
</head>
<body id="standardattributes"><a name="standardattributes"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Using standard attributes</h1>
<div><p>Learn about automatically generated directory attributes of the
optical file system.</p>
<div class="section"><p>Directory entries for files and directories have information that
is associated with them called <em>attributes</em>. Each attribute consists
of a name and a value. Some attributes generate automatically when creating
the directory or file. These attributes are called <em>standard attributes</em>.
Standard attributes start with the letter Q for ease of identification. All
file systems use standard attributes. Several receive unique interpretation
by the optical file system. LAN-attached optical devices have a different
interpretation of standard attributes than directly-attached optical devices.
The following is a basic definition of the standard attributes and their meaning
with respect to optical support.</p>
</div>
<div class="section"><h4 class="sectiontitle">QALCSIZE attribute</h4><p>As an output field, QALCSIZE
is the number of bytes allocated on optical disk by the file. It will always
be 0 for directories.</p>
<p>When the QALCSIZE attribute is specified on the
Open Stream File during a write request, the media is checked to see if there
is enough space available to allocate the amount specified. If there is not
enough space available on the optical volume, message CPF1F61, <span class="uicontrol">No
free space available on media</span>, is issued. For more information
about using this attribute, see <a href="capacitythreshold.htm">Media
Capacity and volume threshold</a>. </p>
</div>
<div class="section"><h4 class="sectiontitle">QACCDTTM attribute</h4><p>This attribute is not supported
by the optical file system. It is always the same as the file creation date
and time (QCRTDTTM).</p>
</div>
<div class="section"><h4 class="sectiontitle">QCRTDTTM attribute</h4><p>This attribute indicates the
creation date of a file or directory.</p>
</div>
<div class="section"><h4 class="sectiontitle">QWRTDTTM attribute</h4><p>This attribute indicates the
last date and time that data was written to an optical file. It does not
reflect the date and time that the file attributes were last written.</p>
</div>
<div class="section"><h4 class="sectiontitle">QFILATTR attribute</h4><div class="p">Support of this attribute is
only by directly-attached optical support devices. The optical interpretation
of the file flags is as follows: <ul><li><strong>Read-only file</strong>: i5/OS™ provides full support of this attribute through
the optical file system. When setting this attribute to on (1), you cannot
delete or overwrite the file.</li>
<li><strong>Hidden file</strong>: i5/OS maintains this attribute for the user application
to manage, but does not fully support it by the optical file system. When
setting this attribute to ON (1), the optical file system does not recognize
the file as hidden. User applications require no special access to files with
this attribute on.</li>
<li><strong>System file</strong>: i5/OS maintains this attribute for the user application
to manage; but does not fully support it by the optical file system. When
setting this attribute to ON (1), the optical file system does not recognize
the file as a system file. User applications require no special access to
files with this attribute on.</li>
<li><strong>Changed file</strong>: i5/OS supports this attribute by the optical file system.
It is automatically set on (1) when a file is created or written to. You
can only set it off(0) by using the Change Directory Entry Attributes (QHFCHGAT)
API.</li>
</ul>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="hfs.htm" title="Read this topic collection to learn how to program with the hierarchical file system (HFS).">Hierarchical file system (HFS) programming</a></div>
</div>
</div>
</body>
</html>