Add XTHV1 registry hive format article
Builds / ExectOS WebSite (push) Successful in 22s

This commit is contained in:
2026-11-29 14:57:54 +01:00
parent 058c7aaefe
commit d3b870619f
6 changed files with 963 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 430" font-family="Helvetica, Arial, sans-serif">
<rect width="920" height="430" fill="#ffffff"/>
<defs>
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#555"/></marker>
</defs>
<text x="460" y="30" font-size="18" font-weight="bold" text-anchor="middle" fill="#222">Logical image: bins tiled with cells</text>
<g font-size="12" text-anchor="middle">
<!-- logical image strip -->
<text x="40" y="66" text-anchor="start" fill="#555">Logical image</text>
<rect x="40" y="76" width="260" height="40" rx="3" fill="#2f6f8f"/><text x="170" y="100" fill="#fff">bin @ 0, Size 4096</text>
<rect x="302" y="76" width="520" height="40" rx="3" fill="#2f6f8f"/><text x="562" y="100" fill="#fff">bin @ 4096, Size 8192 (may span non-adjacent PBNs)</text>
<rect x="824" y="76" width="56" height="40" rx="3" fill="#ffffff" stroke="#999" stroke-dasharray="5,4"/><text x="852" y="100" fill="#777">…</text>
<line x1="40" y1="118" x2="40" y2="150" stroke="#999" stroke-dasharray="3,3"/>
<line x1="300" y1="118" x2="880" y2="150" stroke="#999" stroke-dasharray="3,3"/>
<!-- bin layout -->
<rect x="40" y="152" width="150" height="48" rx="3" fill="#2f6f8f"/><text x="115" y="172" fill="#fff" font-weight="bold">Bin header</text><text x="115" y="189" fill="#fff">32 bytes</text>
<rect x="192" y="152" width="150" height="48" rx="3" fill="#3c8d5c"/><text x="267" y="172" fill="#fff" font-weight="bold">Allocated cell</text><text x="267" y="189" fill="#fff" font-family="monospace">Size = −80</text>
<rect x="344" y="152" width="90" height="48" rx="3" fill="#3c8d5c"/><text x="389" y="172" fill="#fff" font-weight="bold">Allocated</text><text x="389" y="189" fill="#fff" font-family="monospace">−24</text>
<rect x="436" y="152" width="130" height="48" rx="3" fill="#d9d9d9"/><text x="501" y="172" fill="#333" font-weight="bold">Free cell</text><text x="501" y="189" fill="#333" font-family="monospace">+48, zeroed</text>
<rect x="568" y="152" width="120" height="48" rx="3" fill="#3c8d5c"/><text x="628" y="172" fill="#fff" font-weight="bold">Allocated</text><text x="628" y="189" fill="#fff" font-family="monospace">−136</text>
<rect x="690" y="152" width="190" height="48" rx="3" fill="#d9d9d9"/><text x="785" y="172" fill="#333" font-weight="bold">Free tail</text><text x="785" y="189" fill="#333" font-family="monospace">+N, zeroed</text>
<g font-family="monospace" fill="#555" font-size="10">
<text x="40" y="214" text-anchor="start">+0</text><text x="192" y="214" text-anchor="start">+32</text><text x="880" y="214" text-anchor="end">+Size</text>
</g>
<text x="460" y="236" fill="#555">Cells start at bin offset 32, are packed in 8-byte multiples and cover every byte of the bin.</text>
<!-- bin header detail -->
<text x="40" y="276" text-anchor="start" font-weight="bold" fill="#222">Bin header</text>
<rect x="40" y="286" width="100" height="40" rx="3" fill="#2f6f8f"/><text x="90" y="303" fill="#fff">Signature</text><text x="90" y="318" fill="#fff" font-family="monospace">"hbin"</text>
<rect x="142" y="286" width="100" height="40" rx="3" fill="#2f6f8f"/><text x="192" y="310" fill="#fff">FileOffset</text>
<rect x="244" y="286" width="100" height="40" rx="3" fill="#2f6f8f"/><text x="294" y="310" fill="#fff">Size</text>
<rect x="346" y="286" width="200" height="40" rx="3" fill="#bbbbbb"/><text x="446" y="310" fill="#333">Reserved (2 × u32)</text>
<rect x="548" y="286" width="200" height="40" rx="3" fill="#888888"/><text x="648" y="310" fill="#fff">TimeStamp (u64)</text>
<rect x="750" y="286" width="100" height="40" rx="3" fill="#bbbbbb"/><text x="800" y="310" fill="#333">Spare</text>
<g font-family="monospace" fill="#555" font-size="10">
<text x="40" y="340" text-anchor="start">0</text><text x="142" y="340" text-anchor="start">4</text><text x="244" y="340" text-anchor="start">8</text>
<text x="346" y="340" text-anchor="start">12</text><text x="548" y="340" text-anchor="start">20</text><text x="750" y="340" text-anchor="start">28</text><text x="850" y="340" text-anchor="end">32</text>
</g>
<!-- cell detail -->
<text x="40" y="374" text-anchor="start" font-weight="bold" fill="#222">Cell</text>
<rect x="40" y="384" width="100" height="36" rx="3" fill="#3c8d5c"/><text x="90" y="406" fill="#fff" font-family="monospace">i32 Size</text>
<rect x="142" y="384" width="440" height="36" rx="3" fill="#6fae86"/><text x="362" y="406" fill="#fff">Payload: |Size| − 4 bytes (record or raw data)</text>
<text x="600" y="400" text-anchor="start" fill="#333">Size &lt; 0: allocated, Size &gt; 0: free</text>
<text x="600" y="416" text-anchor="start" fill="#333">Cell index = logical offset of Size</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

@@ -0,0 +1,76 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 430" font-family="Helvetica, Arial, sans-serif">
<rect width="920" height="430" fill="#ffffff"/>
<text x="460" y="30" font-size="18" font-weight="bold" text-anchor="middle" fill="#222">XTHV1 file: 4096-byte pages addressed by PBN</text>
<!-- page row -->
<g font-size="12" text-anchor="middle">
<g transform="translate(30,60)">
<rect width="80" height="64" rx="4" fill="#4a6fa5"/><text x="40" y="28" fill="#fff" font-weight="bold">Superblock</text><text x="40" y="46" fill="#fff">slot A</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 0</text>
</g>
<g transform="translate(115,60)">
<rect width="80" height="64" rx="4" fill="#4a6fa5"/><text x="40" y="28" fill="#fff" font-weight="bold">Superblock</text><text x="40" y="46" fill="#fff">slot B</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 1</text>
</g>
<g transform="translate(200,60)">
<rect width="80" height="64" rx="4" fill="#3c8d5c"/><text x="40" y="28" fill="#fff" font-weight="bold">Data</text><text x="40" y="46" fill="#fff">LPN 1</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 2</text>
</g>
<g transform="translate(285,60)">
<rect width="80" height="64" rx="4" fill="#7a5ea8"/><text x="40" y="28" fill="#fff" font-weight="bold">Map node</text><text x="40" y="46" fill="#fff">level 2</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 3</text>
</g>
<g transform="translate(370,60)">
<rect width="80" height="64" rx="4" fill="#bbbbbb"/><text x="40" y="28" fill="#333" font-weight="bold">Unused</text><text x="40" y="46" fill="#333">garbage</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 4</text>
</g>
<g transform="translate(455,60)">
<rect width="80" height="64" rx="4" fill="#7a5ea8"/><text x="40" y="28" fill="#fff" font-weight="bold">Map node</text><text x="40" y="46" fill="#fff">level 0</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 5</text>
</g>
<g transform="translate(540,60)">
<rect width="80" height="64" rx="4" fill="#3c8d5c"/><text x="40" y="28" fill="#fff" font-weight="bold">Data</text><text x="40" y="46" fill="#fff">LPN 0</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 6</text>
</g>
<g transform="translate(625,60)">
<rect width="80" height="64" rx="4" fill="#7a5ea8"/><text x="40" y="28" fill="#fff" font-weight="bold">Map node</text><text x="40" y="46" fill="#fff">level 1</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 7</text>
</g>
<g transform="translate(710,60)">
<rect width="80" height="64" rx="4" fill="#3c8d5c"/><text x="40" y="28" fill="#fff" font-weight="bold">Data</text><text x="40" y="46" fill="#fff">LPN 2</text>
<text x="40" y="84" fill="#555" font-family="monospace">PBN 8</text>
</g>
<g transform="translate(795,60)">
<rect width="95" height="64" rx="4" fill="#ffffff" stroke="#999" stroke-dasharray="5,4"/><text x="47" y="38" fill="#777">…</text>
<text x="47" y="84" fill="#555" font-family="monospace">PBN 9+</text>
</g>
</g>
<!-- logical view -->
<text x="460" y="190" font-size="15" font-weight="bold" text-anchor="middle" fill="#222">Committed image, as reached from the current superblock</text>
<defs>
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#555"/></marker>
</defs>
<g font-size="12" text-anchor="middle">
<rect x="40" y="215" width="150" height="44" rx="4" fill="#4a6fa5"/><text x="115" y="234" fill="#fff" font-weight="bold">Superblock (slot A)</text><text x="115" y="250" fill="#fff">MapRoot → PBN 3</text>
<rect x="250" y="215" width="130" height="44" rx="4" fill="#7a5ea8"/><text x="315" y="234" fill="#fff" font-weight="bold">Level 2 root</text><text x="315" y="250" fill="#fff" font-family="monospace">PBN 3</text>
<rect x="440" y="215" width="130" height="44" rx="4" fill="#7a5ea8"/><text x="505" y="234" fill="#fff" font-weight="bold">Level 1</text><text x="505" y="250" fill="#fff" font-family="monospace">PBN 7</text>
<rect x="630" y="215" width="130" height="44" rx="4" fill="#7a5ea8"/><text x="695" y="234" fill="#fff" font-weight="bold">Level 0</text><text x="695" y="250" fill="#fff" font-family="monospace">PBN 5</text>
<line x1="190" y1="237" x2="248" y2="237" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="380" y1="237" x2="438" y2="237" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="570" y1="237" x2="628" y2="237" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<rect x="580" y="320" width="100" height="44" rx="4" fill="#3c8d5c"/><text x="630" y="339" fill="#fff" font-weight="bold">LPN 0</text><text x="630" y="355" fill="#fff" font-family="monospace">PBN 6</text>
<rect x="690" y="320" width="100" height="44" rx="4" fill="#3c8d5c"/><text x="740" y="339" fill="#fff" font-weight="bold">LPN 1</text><text x="740" y="355" fill="#fff" font-family="monospace">PBN 2</text>
<rect x="800" y="320" width="100" height="44" rx="4" fill="#3c8d5c"/><text x="850" y="339" fill="#fff" font-weight="bold">LPN 2</text><text x="850" y="355" fill="#fff" font-family="monospace">PBN 8</text>
<line x1="695" y1="259" x2="632" y2="318" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="700" y1="259" x2="738" y2="318" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="710" y1="259" x2="845" y2="318" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="40" y="320" text-anchor="start" fill="#333" font-size="13">Every descriptor carries the child's PBN,</text>
<text x="40" y="338" text-anchor="start" fill="#333" font-size="13">birth generation and SHA-1 hash.</text>
<text x="40" y="364" text-anchor="start" fill="#333" font-size="13">Logical image = LPN 0, 1, 2 … concatenated:</text>
<text x="40" y="382" text-anchor="start" fill="#333" font-size="13">the bins and cells of the registry.</text>
<text x="40" y="408" text-anchor="start" fill="#777" font-size="12">Pages not reachable from a live superblock are ignored.</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

+54
View File
@@ -0,0 +1,54 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 420" font-family="Helvetica, Arial, sans-serif">
<rect width="920" height="420" fill="#ffffff"/>
<defs>
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#555"/></marker>
<marker id="b" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#c07a2c"/></marker>
</defs>
<text x="460" y="30" font-size="18" font-weight="bold" text-anchor="middle" fill="#222">Copy-on-write commit: generation G + 1 shares unchanged pages with G</text>
<g font-size="12" text-anchor="middle">
<!-- superblocks -->
<rect x="60" y="60" width="200" height="48" rx="4" fill="#4a6fa5"/>
<text x="160" y="80" fill="#fff" font-weight="bold">Slot A: generation G</text><text x="160" y="97" fill="#fff">previous image</text>
<rect x="660" y="60" width="200" height="48" rx="4" fill="#4a6fa5" stroke="#c07a2c" stroke-width="3"/>
<text x="760" y="80" fill="#fff" font-weight="bold">Slot B: generation G + 1</text><text x="760" y="97" fill="#fff">current image</text>
<!-- old tree -->
<rect x="100" y="140" width="120" height="40" rx="4" fill="#7a5ea8"/><text x="160" y="164" fill="#fff">root (G)</text>
<rect x="100" y="210" width="120" height="40" rx="4" fill="#7a5ea8"/><text x="160" y="234" fill="#fff">level 1 (G)</text>
<rect x="40" y="280" width="110" height="40" rx="4" fill="#7a5ea8"/><text x="95" y="304" fill="#fff">level 0 #0 (G)</text>
<rect x="170" y="280" width="110" height="40" rx="4" fill="#7a5ea8"/><text x="225" y="304" fill="#fff">level 0 #1 (G)</text>
<line x1="160" y1="108" x2="160" y2="138" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="160" y1="180" x2="160" y2="208" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="140" y1="250" x2="100" y2="278" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="180" y1="250" x2="220" y2="278" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<!-- new tree -->
<rect x="700" y="140" width="120" height="40" rx="4" fill="#7a5ea8" stroke="#c07a2c" stroke-width="3"/><text x="760" y="164" fill="#fff">root (G+1)</text>
<rect x="700" y="210" width="120" height="40" rx="4" fill="#7a5ea8" stroke="#c07a2c" stroke-width="3"/><text x="760" y="234" fill="#fff">level 1 (G+1)</text>
<rect x="770" y="280" width="120" height="40" rx="4" fill="#7a5ea8" stroke="#c07a2c" stroke-width="3"/><text x="830" y="304" fill="#fff">level 0 #1 (G+1)</text>
<line x1="760" y1="108" x2="760" y2="138" stroke="#c07a2c" stroke-width="1.8" marker-end="url(#b)"/>
<line x1="760" y1="180" x2="760" y2="208" stroke="#c07a2c" stroke-width="1.8" marker-end="url(#b)"/>
<line x1="790" y1="250" x2="825" y2="278" stroke="#c07a2c" stroke-width="1.8" marker-end="url(#b)"/>
<!-- shared: new L1 points to old L0 #0 -->
<path d="M 700 236 C 450 250, 250 262, 125 278" fill="none" stroke="#c07a2c" stroke-width="1.8" stroke-dasharray="6,4" marker-end="url(#b)"/>
<text x="430" y="228" fill="#c07a2c">unchanged subtree is shared by reference</text>
<!-- data pages -->
<g font-family="monospace">
<rect x="20" y="360" width="70" height="36" rx="4" fill="#3c8d5c"/><text x="55" y="382" fill="#fff">LPN 0</text>
<rect x="100" y="360" width="70" height="36" rx="4" fill="#3c8d5c"/><text x="135" y="382" fill="#fff">LPN 1</text>
<rect x="190" y="360" width="70" height="36" rx="4" fill="#3c8d5c"/><text x="225" y="382" fill="#fff">LPN 84</text>
<rect x="800" y="360" width="90" height="36" rx="4" fill="#3c8d5c" stroke="#c07a2c" stroke-width="3"/><text x="845" y="382" fill="#fff">LPN 84'</text>
</g>
<line x1="80" y1="320" x2="58" y2="358" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="110" y1="320" x2="132" y2="358" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="225" y1="320" x2="225" y2="358" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="840" y1="320" x2="845" y2="358" stroke="#c07a2c" stroke-width="1.8" marker-end="url(#b)"/>
<text x="420" y="330" fill="#333">One modified page (LPN 84) costs: the new data page,</text>
<text x="420" y="348" fill="#333">one new node per level and one superblock.</text>
<text x="420" y="372" fill="#333">Nothing reachable from generation G is overwritten,</text>
<text x="420" y="390" fill="#333">so a crash at any point leaves G or G + 1 intact.</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

+69
View File
@@ -0,0 +1,69 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920 560" font-family="Helvetica, Arial, sans-serif">
<rect width="920" height="560" fill="#ffffff"/>
<defs>
<marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#555"/></marker>
</defs>
<text x="460" y="30" font-size="18" font-weight="bold" text-anchor="middle" fill="#222">Map tree: three fixed levels, 84 descriptors per node</text>
<g font-size="12" text-anchor="middle">
<!-- level 2 -->
<rect x="370" y="55" width="180" height="46" rx="4" fill="#7a5ea8"/>
<text x="460" y="74" fill="#fff" font-weight="bold">Level 2 (root)</text>
<text x="460" y="91" fill="#fff" font-family="monospace">index = LPN / 7056</text>
<!-- level 1 -->
<rect x="130" y="150" width="180" height="46" rx="4" fill="#7a5ea8"/>
<text x="220" y="169" fill="#fff" font-weight="bold">Level 1, entry 0</text>
<text x="220" y="186" fill="#fff" font-family="monospace">LPN 0 … 7055</text>
<rect x="610" y="150" width="180" height="46" rx="4" fill="#7a5ea8"/>
<text x="700" y="169" fill="#fff" font-weight="bold">Level 1, entry k</text>
<text x="700" y="186" fill="#fff" font-family="monospace">LPN k·7056 …</text>
<text x="460" y="178" fill="#777" font-size="16">…</text>
<line x1="420" y1="101" x2="240" y2="148" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="500" y1="101" x2="680" y2="148" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="600" y="128" fill="#555" font-family="monospace" text-anchor="start">index = (LPN % 7056) / 84</text>
<!-- level 0 -->
<rect x="40" y="245" width="150" height="46" rx="4" fill="#7a5ea8"/>
<text x="115" y="264" fill="#fff" font-weight="bold">Level 0, entry 0</text>
<text x="115" y="281" fill="#fff" font-family="monospace">LPN 0 … 83</text>
<rect x="250" y="245" width="150" height="46" rx="4" fill="#7a5ea8"/>
<text x="325" y="264" fill="#fff" font-weight="bold">Level 0, entry 1</text>
<text x="325" y="281" fill="#fff" font-family="monospace">LPN 84 … 167</text>
<line x1="200" y1="196" x2="125" y2="243" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="240" y1="196" x2="315" y2="243" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="440" y="273" fill="#555" font-family="monospace" text-anchor="start">index = LPN % 84</text>
<!-- data -->
<rect x="20" y="335" width="60" height="40" rx="4" fill="#3c8d5c"/><text x="50" y="359" fill="#fff" font-family="monospace">LPN 0</text>
<rect x="86" y="335" width="60" height="40" rx="4" fill="#3c8d5c"/><text x="116" y="359" fill="#fff" font-family="monospace">LPN 1</text>
<text x="164" y="360" fill="#777" font-size="16">…</text>
<rect x="182" y="335" width="60" height="40" rx="4" fill="#3c8d5c"/><text x="212" y="359" fill="#fff" font-family="monospace">LPN 83</text>
<line x1="90" y1="291" x2="52" y2="333" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="115" y1="291" x2="116" y2="333" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<line x1="140" y1="291" x2="208" y2="333" stroke="#555" stroke-width="1.6" marker-end="url(#a)"/>
<text x="620" y="300" fill="#333" text-anchor="start">Capacity: 84³ = 592 704 pages</text>
<text x="620" y="318" fill="#333" text-anchor="start">Largest image: 524 287 pages</text>
<text x="620" y="336" fill="#333" text-anchor="start">Depth never depends on the data.</text>
</g>
<!-- node page layout -->
<text x="460" y="420" font-size="15" font-weight="bold" text-anchor="middle" fill="#222">Map node page (4096 bytes) and descriptor (48 bytes)</text>
<g font-size="11" text-anchor="middle">
<rect x="40" y="440" width="64" height="40" rx="3" fill="#7a5ea8"/><text x="72" y="464" fill="#fff">Magic</text>
<rect x="106" y="440" width="96" height="40" rx="3" fill="#c07a2c"/><text x="154" y="464" fill="#fff">HiveId</text>
<rect x="204" y="440" width="72" height="40" rx="3" fill="#7a5ea8"/><text x="240" y="458" fill="#fff">Birth</text><text x="240" y="472" fill="#fff">Generation</text>
<rect x="278" y="440" width="64" height="40" rx="3" fill="#7a5ea8"/><text x="310" y="464" fill="#fff">BaseLpn</text>
<rect x="344" y="440" width="40" height="40" rx="3" fill="#7a5ea8"/><text x="364" y="464" fill="#fff">Level</text>
<rect x="386" y="440" width="48" height="40" rx="3" fill="#7a5ea8"/><text x="410" y="458" fill="#fff">Used</text><text x="410" y="472" fill="#fff">Entries</text>
<rect x="436" y="440" width="60" height="40" rx="3" fill="#bbbbbb"/><text x="466" y="464" fill="#333">reserved</text>
<rect x="498" y="440" width="382" height="40" rx="3" fill="#3c8d5c"/><text x="689" y="464" fill="#fff">Entries[84] — 84 × 48-byte descriptors</text>
<g font-family="monospace" fill="#555" font-size="10">
<text x="40" y="495" text-anchor="start">0</text><text x="106" y="495" text-anchor="start">8</text><text x="204" y="495" text-anchor="start">24</text>
<text x="278" y="495" text-anchor="start">32</text><text x="344" y="495" text-anchor="start">40</text><text x="386" y="495" text-anchor="start">44</text>
<text x="436" y="495" text-anchor="start">48</text><text x="498" y="495" text-anchor="start">64</text><text x="880" y="495" text-anchor="end">4096</text>
</g>
<rect x="498" y="510" width="90" height="36" rx="3" fill="#3c8d5c"/><text x="543" y="532" fill="#fff">PBN (u64)</text>
<rect x="590" y="510" width="120" height="36" rx="3" fill="#3c8d5c"/><text x="650" y="532" fill="#fff">BirthGeneration (u64)</text>
<rect x="712" y="510" width="168" height="36" rx="3" fill="#a5484a"/><text x="796" y="532" fill="#fff">Hash: SHA-1 + 12 zero</text>
<line x1="498" y1="482" x2="498" y2="508" stroke="#999" stroke-dasharray="3,3"/>
<line x1="560" y1="482" x2="880" y2="508" stroke="#999" stroke-dasharray="3,3"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.9 KiB

+100
View File
@@ -0,0 +1,100 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 824 644" font-family="Helvetica, Arial, sans-serif">
<rect width="824" height="644" fill="#ffffff"/>
<text x="412.0" y="30" font-size="18" font-weight="bold" text-anchor="middle" fill="#222">XTHV1 superblock (4096 bytes, slot A at PBN 0, slot B at PBN 1)</text>
<text x="112.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+0</text>
<text x="156.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+1</text>
<text x="200.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+2</text>
<text x="244.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+3</text>
<text x="288.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+4</text>
<text x="332.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+5</text>
<text x="376.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+6</text>
<text x="420.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+7</text>
<text x="464.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+8</text>
<text x="508.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+9</text>
<text x="552.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+A</text>
<text x="596.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+B</text>
<text x="640.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+C</text>
<text x="684.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+D</text>
<text x="728.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+E</text>
<text x="772.0" y="60" font-size="11" font-family="monospace" text-anchor="middle" fill="#777">+F</text>
<text x="80" y="91" font-size="12" font-family="monospace" text-anchor="end" fill="#555">0</text>
<text x="80" y="125" font-size="12" font-family="monospace" text-anchor="end" fill="#555">16</text>
<text x="80" y="159" font-size="12" font-family="monospace" text-anchor="end" fill="#555">32</text>
<text x="80" y="193" font-size="12" font-family="monospace" text-anchor="end" fill="#555">48</text>
<text x="80" y="227" font-size="12" font-family="monospace" text-anchor="end" fill="#555">64</text>
<text x="80" y="261" font-size="12" font-family="monospace" text-anchor="end" fill="#555">80</text>
<text x="80" y="295" font-size="12" font-family="monospace" text-anchor="end" fill="#555">96</text>
<text x="80" y="329" font-size="12" font-family="monospace" text-anchor="end" fill="#555">112</text>
<text x="80" y="363" font-size="12" font-family="monospace" text-anchor="end" fill="#555">128</text>
<text x="80" y="397" font-size="12" font-family="monospace" text-anchor="end" fill="#555">144</text>
<text x="80" y="431" font-size="12" font-family="monospace" text-anchor="end" fill="#555">160</text>
<rect x="91" y="71" width="350" height="32" rx="3" fill="#4a6fa5"/>
<text x="266.0" y="91.0" font-size="12" text-anchor="middle" fill="#fff">Magic "XTHV1\r\n\x1a"</text>
<rect x="443" y="71" width="86" height="32" rx="3" fill="#4a6fa5"/>
<text x="486.0" y="91.0" font-size="12" text-anchor="middle" fill="#fff">Major</text>
<rect x="531" y="71" width="86" height="32" rx="3" fill="#4a6fa5"/>
<text x="574.0" y="91.0" font-size="12" text-anchor="middle" fill="#fff">Minor</text>
<rect x="619" y="71" width="174" height="32" rx="3" fill="#4a6fa5"/>
<text x="706.0" y="91.0" font-size="12" text-anchor="middle" fill="#fff">HeaderBytes</text>
<rect x="91" y="105" width="174" height="32" rx="3" fill="#4a6fa5"/>
<text x="178.0" y="125.0" font-size="12" text-anchor="middle" fill="#fff">PageBytes</text>
<rect x="267" y="105" width="174" height="32" rx="3" fill="#4a6fa5"/>
<text x="354.0" y="125.0" font-size="12" text-anchor="middle" fill="#fff">SlotId</text>
<rect x="443" y="105" width="350" height="32" rx="3" fill="#c07a2c"/>
<text x="618.0" y="125.0" font-size="12" text-anchor="middle" fill="#fff">HiveId</text>
<rect x="91" y="139" width="350" height="32" rx="3" fill="#c07a2c"/>
<text x="266.0" y="159.0" font-size="12" text-anchor="middle" fill="#fff">HiveId (cont.)</text>
<rect x="443" y="139" width="350" height="32" rx="3" fill="#c07a2c"/>
<text x="618.0" y="159.0" font-size="12" text-anchor="middle" fill="#fff">Generation</text>
<rect x="91" y="173" width="350" height="32" rx="3" fill="#c07a2c"/>
<text x="266.0" y="193.0" font-size="12" text-anchor="middle" fill="#fff">LogicalBytes</text>
<rect x="443" y="173" width="350" height="32" rx="3" fill="#c07a2c"/>
<text x="618.0" y="193.0" font-size="12" text-anchor="middle" fill="#fff">FilePageLimit</text>
<rect x="91" y="207" width="174" height="32" rx="3" fill="#c07a2c"/>
<text x="178.0" y="227.0" font-size="12" text-anchor="middle" fill="#fff">RootCell</text>
<rect x="267" y="207" width="174" height="32" rx="3" fill="#4a6fa5"/>
<text x="354.0" y="227.0" font-size="12" text-anchor="middle" fill="#fff">CellFormat</text>
<rect x="443" y="207" width="350" height="32" rx="3" fill="#7a5ea8"/>
<text x="618.0" y="227.0" font-size="12" text-anchor="middle" fill="#fff">MapRoot.PBN</text>
<rect x="91" y="241" width="350" height="32" rx="3" fill="#7a5ea8"/>
<text x="266.0" y="261.0" font-size="12" text-anchor="middle" fill="#fff">MapRoot.BirthGeneration</text>
<rect x="443" y="241" width="350" height="32" rx="3" fill="#7a5ea8"/>
<text x="618.0" y="261.0" font-size="12" text-anchor="middle" fill="#fff">MapRoot.Hash (SHA-1 + 12 zero bytes)</text>
<rect x="91" y="275" width="702" height="32" rx="3" fill="#7a5ea8"/>
<text x="442.0" y="295.0" font-size="12" text-anchor="middle" fill="#fff">MapRoot.Hash (cont.)</text>
<rect x="91" y="309" width="350" height="32" rx="3" fill="#7a5ea8"/>
<text x="266.0" y="329.0" font-size="12" text-anchor="middle" fill="#fff">MapRoot.Hash (cont.)</text>
<rect x="443" y="309" width="350" height="32" rx="3" fill="#888888"/>
<text x="618.0" y="329.0" font-size="12" text-anchor="middle" fill="#fff">CommitTime</text>
<rect x="91" y="343" width="350" height="32" rx="3" fill="#3c8d5c"/>
<text x="266.0" y="363.0" font-size="12" text-anchor="middle" fill="#fff">RequiredFeatures</text>
<rect x="443" y="343" width="350" height="32" rx="3" fill="#3c8d5c"/>
<text x="618.0" y="363.0" font-size="12" text-anchor="middle" fill="#fff">ReadOnlyFeatures</text>
<rect x="91" y="377" width="350" height="32" rx="3" fill="#3c8d5c"/>
<text x="266.0" y="397.0" font-size="12" text-anchor="middle" fill="#fff">CompatibleFeatures</text>
<rect x="443" y="377" width="350" height="32" rx="3" fill="#888888"/>
<text x="618.0" y="397.0" font-size="12" text-anchor="middle" fill="#fff">WriterId</text>
<rect x="91" y="411" width="350" height="32" rx="3" fill="#888888"/>
<text x="266.0" y="431.0" font-size="12" text-anchor="middle" fill="#fff">WriterId (cont.)</text>
<rect x="443" y="411" width="174" height="32" rx="3" fill="#4a6fa5"/>
<text x="530.0" y="431.0" font-size="12" text-anchor="middle" fill="#fff">HashAlgorithm</text>
<rect x="619" y="411" width="174" height="32" rx="3" fill="#bbbbbb"/>
<text x="706.0" y="431.0" font-size="12" text-anchor="middle" fill="#333">Reserved</text>
<text x="80" y="479" font-size="12" font-family="monospace" text-anchor="end" fill="#555">176</text>
<rect x="91" y="459" width="702" height="51.0" rx="3" fill="#e6e6e6" stroke="#bbb" stroke-dasharray="5,4"/>
<text x="442" y="488.5" font-size="12" text-anchor="middle" fill="#333">Reserved, 3888 bytes, all zero (part of the hash preimage)</text>
<text x="80" y="544.0" font-size="12" font-family="monospace" text-anchor="end" fill="#555">4064</text>
<rect x="91" y="524.0" width="702" height="32" rx="3" fill="#a5484a"/>
<text x="442" y="544.0" font-size="12" text-anchor="middle" fill="#fff">SuperblockHash: SHA-1 digest (bytes 0..19)</text>
<text x="80" y="578.0" font-size="12" font-family="monospace" text-anchor="end" fill="#555">4080</text>
<rect x="91" y="558.0" width="174" height="32" rx="3" fill="#a5484a"/>
<text x="178" y="578.0" font-size="11" text-anchor="middle" fill="#fff">digest (cont.)</text>
<rect x="267" y="558.0" width="526" height="32" rx="3" fill="#bbbbbb"/>
<text x="530" y="578.0" font-size="12" text-anchor="middle" fill="#333">12 bytes, MUST be zero</text>
<rect x="90" y="615.0" width="14" height="14" rx="2" fill="#4a6fa5"/><text x="110" y="627.0" font-size="12" fill="#333">format identification</text>
<rect x="250.20000000000002" y="615.0" width="14" height="14" rx="2" fill="#c07a2c"/><text x="270.20000000000005" y="627.0" font-size="12" fill="#333">image description</text>
<rect x="385.6" y="615.0" width="14" height="14" rx="2" fill="#7a5ea8"/><text x="405.6" y="627.0" font-size="12" fill="#333">map root descriptor</text>
<rect x="533.4000000000001" y="615.0" width="14" height="14" rx="2" fill="#3c8d5c"/><text x="553.4000000000001" y="627.0" font-size="12" fill="#333">feature masks</text>
<rect x="644.0000000000001" y="615.0" width="14" height="14" rx="2" fill="#888888"/><text x="664.0000000000001" y="627.0" font-size="12" fill="#333">diagnostic</text>
<rect x="736.0000000000001" y="615.0" width="14" height="14" rx="2" fill="#a5484a"/><text x="756.0000000000001" y="627.0" font-size="12" fill="#333">integrity</text>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB