<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.lustre.org/index.php?action=history&amp;feed=atom&amp;title=Architecture_-_ZFS_TinyZAP</id>
	<title>Architecture - ZFS TinyZAP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lustre.org/index.php?action=history&amp;feed=atom&amp;title=Architecture_-_ZFS_TinyZAP"/>
	<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;action=history"/>
	<updated>2026-08-26T20:36:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;diff=1396&amp;oldid=prev</id>
		<title>KenRawlings at 18:46, 4 March 2016</title>
		<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;diff=1396&amp;oldid=prev"/>
		<updated>2016-03-04T18:46:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:46, 4 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l142&quot;&gt;Line 142:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 142:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://www.opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://www.opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Architecure&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Architecture&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_lustre_org:diff::1.12:old-1393:rev-1396 --&gt;
&lt;/table&gt;</summary>
		<author><name>KenRawlings</name></author>
	</entry>
	<entry>
		<id>http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;diff=1393&amp;oldid=prev</id>
		<title>KenRawlings: assigning category</title>
		<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;diff=1393&amp;oldid=prev"/>
		<updated>2016-03-04T18:46:01Z</updated>

		<summary type="html">&lt;p&gt;assigning category&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:46, 4 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l141&quot;&gt;Line 141:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 141:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://www.opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;http://www.opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Architecure]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_lustre_org:diff::1.12:old-929:rev-1393 --&gt;
&lt;/table&gt;</summary>
		<author><name>KenRawlings</name></author>
	</entry>
	<entry>
		<id>http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;diff=929&amp;oldid=prev</id>
		<title>Adilger: Copy from original page on old wiki</title>
		<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Architecture_-_ZFS_TinyZAP&amp;diff=929&amp;oldid=prev"/>
		<updated>2015-09-14T23:06:44Z</updated>

		<summary type="html">&lt;p&gt;Copy from original page on old wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;The content on this page reflects the state of design of a Lustre feature at a particular point in time and may contain outdated information.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Definitions ==&lt;br /&gt;
&lt;br /&gt;
; &amp;#039;&amp;#039;&amp;#039;ZAP&amp;#039;&amp;#039;&amp;#039; : ZFS Attribute Processor, a hashed name=value lookup table that can be used to do efficient and scalable attribute storage &lt;br /&gt;
; &amp;#039;&amp;#039;&amp;#039;MicroZAP&amp;#039;&amp;#039;&amp;#039; : a form of ZAP used by ZFS that only allows value to be a __u64&lt;br /&gt;
; &amp;#039;&amp;#039;&amp;#039;TinyZAP&amp;#039;&amp;#039;&amp;#039; : a compact ZAP format that allows arbitrary values to be stored&lt;br /&gt;
; &amp;#039;&amp;#039;&amp;#039;FatZAP&amp;#039;&amp;#039;&amp;#039; : a form of ZAP used by ZFS that allows arbitrary name/value pairs but (as name implies) consumes a lot of space&lt;br /&gt;
&lt;br /&gt;
== Use Cases ==&lt;br /&gt;
&lt;br /&gt;
{| border=1 cellspacing=0&lt;br /&gt;
|-&lt;br /&gt;
!id !! quality attribute !! summary&lt;br /&gt;
|-&lt;br /&gt;
|fast_ea || performance || TinyZAP must be flexible to allow storage in arbitrary-sized containers such as large dnode or ancillary dbuf, and not waste too much space per attribute&lt;br /&gt;
|-&lt;br /&gt;
|mdt_fid || performance || ZAP must allow FID storage for MDT directories in a manner that is compatible with ZFS directories&lt;br /&gt;
|-&lt;br /&gt;
|compatible-zfs || usability || integration should be done at the DMU level so that any ZAP users (including ZFS) can use TinyZAPs to store name/value data&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Efficient EA storage ===&lt;br /&gt;
&lt;br /&gt;
{|border=1  cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Scenario:&amp;#039;&amp;#039;&amp;#039; || Efficient EA storage in large dnode&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Business Goals:&amp;#039;&amp;#039;&amp;#039; || Fast access to Lustre EA values&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Relevant QA&amp;#039;s:&amp;#039;&amp;#039;&amp;#039;|| Performance&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|rowspan=&amp;quot;6&amp;quot; writing-mode=&amp;quot;vertical&amp;quot;|&amp;#039;&amp;#039;&amp;#039;details&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Stimulus:&amp;#039;&amp;#039;&amp;#039;|| EA needs to be stored in large dnode&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Stimulus source:&amp;#039;&amp;#039;&amp;#039;|| Lustre OSD (MDT/OST) storing EA data to object&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Environment:&amp;#039;&amp;#039;&amp;#039;|| EA being stored on a specific dnode within a transaction&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Artifact:&amp;#039;&amp;#039;&amp;#039;|| EA is stored in the dnode in ZAP&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Response:&amp;#039;&amp;#039;&amp;#039;|| size of EA in ZAP&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Response measure:&amp;#039;&amp;#039;&amp;#039;|| overhead should not be more than approximately 128 bytes + 48 bytes/EA &lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Questions:&amp;#039;&amp;#039;&amp;#039;|| &lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Issues:&amp;#039;&amp;#039;&amp;#039;|| None.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== MDT FIDs in directories ===&lt;br /&gt;
&lt;br /&gt;
{|border=1  cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Scenario:&amp;#039;&amp;#039;&amp;#039; || Storage of MDT FIDs in directories&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Business Goals:&amp;#039;&amp;#039;&amp;#039; || Able to store FID data along with name and (in some cases) local DMU objid in a single directory entry to avoid extra FID lookup overhead&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Relevant QA&amp;#039;s:&amp;#039;&amp;#039;&amp;#039;|| Performance&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|rowspan=&amp;quot;6&amp;quot; writing-mode=&amp;quot;vertical&amp;quot;|&amp;#039;&amp;#039;&amp;#039;details&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Stimulus:&amp;#039;&amp;#039;&amp;#039;|| Storing MDT FID in a directory entry&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Stimulus source:&amp;#039;&amp;#039;&amp;#039;|| Lustre MDT creating new directory entry&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Environment:&amp;#039;&amp;#039;&amp;#039;|| Directory entry being created within a transaction with objid and FID&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Artifact:&amp;#039;&amp;#039;&amp;#039;|| FID is stored in directory entry after __u64 objid value&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Response:&amp;#039;&amp;#039;&amp;#039;|| size of EA in ZAP&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Response measure:&amp;#039;&amp;#039;&amp;#039;|| overhead should not be more than approximately 128 bytes + 48 bytes/EA &lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Questions:&amp;#039;&amp;#039;&amp;#039;|| &lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Issues:&amp;#039;&amp;#039;&amp;#039;|| None.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== ZFS compatible directories ===&lt;br /&gt;
&lt;br /&gt;
{|border=1  cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Scenario:&amp;#039;&amp;#039;&amp;#039; || ZFS reading TinyZAP directory with FID&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Business Goals:&amp;#039;&amp;#039;&amp;#039; || Compatible with (possibly modified) ZFS code&lt;br /&gt;
|-align=&amp;quot;left&amp;quot; &lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Relevant QA&amp;#039;s:&amp;#039;&amp;#039;&amp;#039;|| Usability&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|rowspan=&amp;quot;6&amp;quot; writing-mode=&amp;quot;vertical&amp;quot;|&amp;#039;&amp;#039;&amp;#039;details&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Stimulus:&amp;#039;&amp;#039;&amp;#039;|| ZFS reading TinyZAP entry&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Stimulus source:&amp;#039;&amp;#039;&amp;#039;|| ZFS doing name lookup in directory&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Environment:&amp;#039;&amp;#039;&amp;#039;|| Lustre MDT mounted with ZFS for diagnostic reasons&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Artifact:&amp;#039;&amp;#039;&amp;#039;|| ZFS is able to read directory and find objid (if local)&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Response:&amp;#039;&amp;#039;&amp;#039;|| ZFS does not fail in object lookup&lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Response measure:&amp;#039;&amp;#039;&amp;#039;|| &lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Questions:&amp;#039;&amp;#039;&amp;#039;|| What should stored in the objid in a CMD environment where the object is on a remote MDT?  &lt;br /&gt;
|-align=&amp;quot;left&amp;quot;&lt;br /&gt;
|colspan=2|&amp;#039;&amp;#039;&amp;#039;Issues:&amp;#039;&amp;#039;&amp;#039;|| There will be some small amount of code change needed in ZFS to only access the first __u64 of the value, because it currently only provides enough space to return a single __u64 of data.  We will also need to handle the case for a remote MDT by either storing objid=0 or some other well-defined value. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Implementation constraints ==&lt;br /&gt;
&lt;br /&gt;
TinyZAP needs to be flexible enough to store arbitrary name/value data, including both Lustre LOV EA, and also MDT directories with extended FID data.  Using a MicroZAP is not possible because this only allows storage of a single __u64 value with each entry.  Using a FatZAP is wasteful as it requires a full block just for the header and a separate block for the leaf data.&lt;br /&gt;
&lt;br /&gt;
A preferred implementation would have a structure similar to the existing zap_leaf_{phys_t,chunk} for the TinyZAP, since the leaf structure is reasonably compact, and may avoid a large amount of almost-identical code in the ZAP.&lt;br /&gt;
&lt;br /&gt;
ZFS should be adapted (if necessary) to be able to handle directories created with TinyZAP layout, so they can can get the objid from the first __u64 and ignore the FID component of the directory entry.&lt;br /&gt;
&lt;br /&gt;
The current ZAP implementation uses an object set and object number as parameters and we will need to interface using a buffer that might be located in the dnode or in an external block. So this might require some refactoring of the ZAP code.&lt;br /&gt;
&lt;br /&gt;
This needs to handle endian swabbing issues correctly, as does all ZFS code.&lt;br /&gt;
&lt;br /&gt;
== Questions and Issues ==&lt;br /&gt;
&lt;br /&gt;
Should we &amp;quot;wrap&amp;quot; the FID data after the DMU object id in an MDT directory so that it is possible in the future to add other extra data in a directory without compromising compatibility?  Something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
#define ZAP_LUSTRE_FID 0x110f1d0f1d0f1d10&lt;br /&gt;
&lt;br /&gt;
struct zap_dir_fid {&lt;br /&gt;
    __u64 zdf_magic;&lt;br /&gt;
    struct lu_fid zdf_fid; /* or other data as appropriate */&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
#define zdf_len (zdf_magic &amp;amp; 0xff).&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This means we can skip (possibly unknown) extra directory info by skipping (zdf_len) bytes at a time looking for zdf_magic == ZAP_LUSTRE_FID.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[[Architecture - ZFS large dnodes|ZFS large dnodes]]&lt;br /&gt;
&lt;br /&gt;
http://www.opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf&lt;/div&gt;</summary>
		<author><name>Adilger</name></author>
	</entry>
</feed>