📄 attribute_list.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//ZH_CN">
<!-- http://linux-ntfs.sourceforge.net/ntfs/attributes/index_allocation.html -->
<html lang="ZH_CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="NTFS Documentation">
<link rel="stylesheet" type="text/css" href="../style/ntfsdoc.css">
<link rel="start" type="text/html" href="../index.html" title="NTFS Documentation">
<title>$ATTRIBUTE_LIST (0x20) - Attribute - NTFS Documentation</title>
</head>
<body>
<table border="0" class="toolbar" summary="" cellspacing="0">
<tr>
<td class="toolbar"><div class="toolbar"><a accesskey="1" class="toolbar" href="../index.html">主页</a></div></td>
<td class="toolbar"><div class="toolbar"><a accesskey="2" class="toolbar" href="../files/index.html">文件</a></div></td>
<td class="toolbar"><div class="toolbar"><a accesskey="3" class="toolbar" href="../attributes/index.html">属性</a></div></td>
<td class="toolbar"><div class="toolbar"><a accesskey="4" class="toolbar" href="../concepts/index.html">概念</a></div></td>
<td class="toolbar"><a accesskey="5" class="toolbar" href="../help/glossary.html">词汇</a></td>
</tr>
</table>
<h1>属性 - $ATTRIBUTE_LIST (0x20)</h1>
<a class="prevnext" accesskey="," href="standard_information.html">前一页</a>
<a class="prevnext" accesskey="." href="file_name.html">后一页</a>
<h2>概述</h2>
<p>
如果有大量的属性而且MFT记录里的空间不足时,可把所有属性都设为非常驻并移出MFT.
如果仍然没有足够的空间,此时就需要一个$ATTRIBUTE_LIST属性。这些保留的属性被放
在一个新的MFT记录里,而$ATTRIBUTE_LIST则描述从哪找到它们。一般很难看到这个属性。
</p>
<h2>属性结构</h2>
<p>
在标准标题之后,此属性包含一个不同长度记录的列表,来描述文件中所有其它属性的类型和位
置(在MFT中),每个记录以8字节排列。 </p>
<p>列表分类:</p>
<ol>
<li>属性类型</li>
<li>属性名(如果存在)</li>
<li>序号</li>
</ol>
<p>
N.B. 它不列出自己。
</p>
<table border="1" summary="" cellspacing="0">
<tr>
<th class="numeric">偏移量</th>
<th class="numeric">大小</th>
<th>描述</th>
</tr>
<tr>
<td class="numeric">~</td>
<td class="numeric">~</td>
<td><a href="../concepts/attribute_header.html">标准属性标题</a></td>
</tr>
<tr>
<td class="numeric">0x00</td>
<td class="numeric">4</td>
<td>类型</td>
</tr>
<tr>
<td class="numeric">0x04</td>
<td class="numeric">2</td>
<td>记录长度</td>
</tr>
<tr>
<td class="numeric">0x06</td>
<td class="numeric">1</td>
<td>名称长度 (N)</td>
</tr>
<tr>
<td class="numeric">0x07</td>
<td class="numeric">1</td>
<td>到名称的偏移量 (a)</td>
</tr>
<tr>
<td class="numeric">0x08</td>
<td class="numeric">8</td>
<td>开始 VCN (b)</td>
</tr>
<tr>
<td class="numeric">0x10</td>
<td class="numeric">8</td>
<td>属性的低级文件参考</td>
</tr>
<tr>
<td class="numeric">0x18</td>
<td class="numeric">2</td>
<td>属性标识符 (c)</td>
</tr>
<tr>
<td class="numeric">0x1A</td>
<td class="numeric">2N</td>
<td>标准字符编码的名称 (if N > 0)</td>
</tr>
</table>
<p>
(a) 如果名称不存在,它指向属性还是为零?<br>
(b) 如果属性是常驻的是开始VCN还是为零?<br>
(c) 每个属性都有一个独一无二的验证符。
</p>
<pre>(a) 它总是指向名称所在位置(0x1A)</pre>
<pre>0x04记录分配(8字节排列)</pre>
<pre>(b) 总是为零,检查</pre>
<pre>(c) 它第一次只显示一个特定属性类型</pre>
<pre>不确定由序号分类,VCN明确</pre>
<h2>注意</h2>
<h3><a class="heading" href="../files/attrdef.html">$AttrDef</a></h3>
<p>
它既可以是常驻的又可以是非常驻的,此属性没有上下限。 </p>
<h3>其他信息</h3>
<p>在0x07处的偏移量只有一个字节长,对一个属性来说是很特殊的。</p>
<p>如果此属性是非常驻的,那么数据趋向必须适合一个MFT记录。</p>
<p>如果文件存在下列情况则需要$ATTRIBUTE_LIST:</p>
<ul>
<li>有很大数量的硬链接(存在很多文件名属性)</li>
<li>有很多碎片,致使数据溢出MFT记录</li>
<li>有一个复杂的安全验证符(不适用于NTFSv3.0+)</li>
<li>有许多指定的流,如数据流。</li>
</ul>
<h3>需要做的</h3>
<pre>
8 VCN lowest_vcn;
最小的这部分属性值的有效簇数,一般为0。如果有一个属性不适合MFT记录,要分配几个属性以支持这个
属性,在这种情况下它不为零,每个MFT记录支持一个属性范围,这里有一个属性列表登录到每个范围。
注意:这是一个有正负之分的值。WINDOWS驱动器使用CMP,当和它比较时后面跟的是JG,这样它就要有正
负之分。
24 __u16 instance;
如果lowest_vcn = 0, 被引用的属性实例;否则为0。
当充分说明一个文件需要扩展MFT中的文件记录时就要使用属性列表,来找到文件的任一文件属性。
因为它的流很可能要增长所以此文件属性可能是非常驻的。
一个非常驻属性的范围(如果存在的话)紧跟在初始范围之后,它们由lowest_vcn控制,它们的实
例(instance)设为零。
</pre>
<br>
<a class="contact" href="http://linux-ntfs.sourceforge.net/ntfs/attributes/attribute_list.html">Online</a>
<a class="contact" href="http://www.reddragonfly.org/ntfs/attributes/attribute_list.html">中文在线</a>
<!-- The two validators will only work if this page is visible on the web -->
<a class="contact" href="http://validator.w3.org/check/referer">Validate HTML</a>
<a class="contact" href="http://jigsaw.w3.org/css-validator/check/referer">Validate CSS</a>
<a class="contact" href="mailto:webmaster@flatcap.org">$Id: attribute_list.html,v 1.9 2001/07/11 11:04:05 flatcap Exp $</a>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -