[hfs-user] Catalog Thread record size ?

Mark Day mday@apple.com
Tue, 16 Apr 2002 16:37:07 -0700


--Apple-Mail-2--109161683
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

On Tuesday, April 16, 2002, at 12:39  AM, Entwicklung wrote:

> Based on the above declarations shouldn't the size for the HFSPlus 
> catalog thread record be 2+2+4 (since CNID's are 4 bytes long ) + 
> 256*2 = 264+256 instead of 264 as mentioned above ? I think someone 
> probably forgot to multiply the 256 by 2 but I just wanted to make sure 
> that is an error.

You're right, it's an error.  The correct (maximum) size is 520.  The 
minimum size would be 10 + 2 * nodeName.length.

-Mark

--Apple-Mail-2--109161683
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

On Tuesday, April 16, 2002, at 12:39  AM, Entwicklung wrote:


<excerpt><fontfamily><param>Arial</param><smaller>Based on the above
declarations shouldn't the size for the HFSPlus catalog thread record
be 2+2+4 (since CNID's are 4 bytes long ) + 256*2 = 264+256 instead of
264 as mentioned above ? I think someone probably forgot to multiply
the 256 by 2 but I just wanted to make sure that is an error.</smaller></fontfamily>

</excerpt>

You're right, it's an error.  The correct (maximum) size is 520.  The
minimum size would be 10 + 2 * nodeName.length.


-Mark


--Apple-Mail-2--109161683--