18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
48c2ecf20Sopenharmony_ci| i.i\_block Offset   | Where It Points                                                                                                                                                                                                              |
58c2ecf20Sopenharmony_ci+=====================+==============================================================================================================================================================================================================================+
68c2ecf20Sopenharmony_ci| 0 to 11             | Direct map to file blocks 0 to 11.                                                                                                                                                                                           |
78c2ecf20Sopenharmony_ci+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
88c2ecf20Sopenharmony_ci| 12                  | Indirect block: (file blocks 12 to (``$block_size`` / 4) + 11, or 12 to 1035 if 4KiB blocks)                                                                                                                                 |
98c2ecf20Sopenharmony_ci|                     |                                                                                                                                                                                                                              |
108c2ecf20Sopenharmony_ci|                     | +------------------------------+--------------------------------------------------------------------+                                                                                                                        |
118c2ecf20Sopenharmony_ci|                     | | Indirect Block Offset        | Where It Points                                                    |                                                                                                                        |
128c2ecf20Sopenharmony_ci|                     | +==============================+====================================================================+                                                                                                                        |
138c2ecf20Sopenharmony_ci|                     | | 0 to (``$block_size`` / 4)   | Direct map to (``$block_size`` / 4) blocks (1024 if 4KiB blocks)   |                                                                                                                        |
148c2ecf20Sopenharmony_ci|                     | +------------------------------+--------------------------------------------------------------------+                                                                                                                        |
158c2ecf20Sopenharmony_ci+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
168c2ecf20Sopenharmony_ci| 13                  | Double-indirect block: (file blocks ``$block_size``/4 + 12 to (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) + 11, or 1036 to 1049611 if 4KiB blocks)                                                                     |
178c2ecf20Sopenharmony_ci|                     |                                                                                                                                                                                                                              |
188c2ecf20Sopenharmony_ci|                     | +--------------------------------+---------------------------------------------------------------------------------------------------------+                                                                                 |
198c2ecf20Sopenharmony_ci|                     | | Double Indirect Block Offset   | Where It Points                                                                                         |                                                                                 |
208c2ecf20Sopenharmony_ci|                     | +================================+=========================================================================================================+                                                                                 |
218c2ecf20Sopenharmony_ci|                     | | 0 to (``$block_size`` / 4)     | Map to (``$block_size`` / 4) indirect blocks (1024 if 4KiB blocks)                                      |                                                                                 |
228c2ecf20Sopenharmony_ci|                     | |                                |                                                                                                         |                                                                                 |
238c2ecf20Sopenharmony_ci|                     | |                                | +------------------------------+--------------------------------------------------------------------+   |                                                                                 |
248c2ecf20Sopenharmony_ci|                     | |                                | | Indirect Block Offset        | Where It Points                                                    |   |                                                                                 |
258c2ecf20Sopenharmony_ci|                     | |                                | +==============================+====================================================================+   |                                                                                 |
268c2ecf20Sopenharmony_ci|                     | |                                | | 0 to (``$block_size`` / 4)   | Direct map to (``$block_size`` / 4) blocks (1024 if 4KiB blocks)   |   |                                                                                 |
278c2ecf20Sopenharmony_ci|                     | |                                | +------------------------------+--------------------------------------------------------------------+   |                                                                                 |
288c2ecf20Sopenharmony_ci|                     | +--------------------------------+---------------------------------------------------------------------------------------------------------+                                                                                 |
298c2ecf20Sopenharmony_ci+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
308c2ecf20Sopenharmony_ci| 14                  | Triple-indirect block: (file blocks (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) + 12 to (``$block_size`` / 4) ^ 3 + (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) + 12, or 1049612 to 1074791436 if 4KiB blocks)   |
318c2ecf20Sopenharmony_ci|                     |                                                                                                                                                                                                                              |
328c2ecf20Sopenharmony_ci|                     | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+                                          |
338c2ecf20Sopenharmony_ci|                     | | Triple Indirect Block Offset   | Where It Points                                                                                                                                |                                          |
348c2ecf20Sopenharmony_ci|                     | +================================+================================================================================================================================================+                                          |
358c2ecf20Sopenharmony_ci|                     | | 0 to (``$block_size`` / 4)     | Map to (``$block_size`` / 4) double indirect blocks (1024 if 4KiB blocks)                                                                      |                                          |
368c2ecf20Sopenharmony_ci|                     | |                                |                                                                                                                                                |                                          |
378c2ecf20Sopenharmony_ci|                     | |                                | +--------------------------------+---------------------------------------------------------------------------------------------------------+   |                                          |
388c2ecf20Sopenharmony_ci|                     | |                                | | Double Indirect Block Offset   | Where It Points                                                                                         |   |                                          |
398c2ecf20Sopenharmony_ci|                     | |                                | +================================+=========================================================================================================+   |                                          |
408c2ecf20Sopenharmony_ci|                     | |                                | | 0 to (``$block_size`` / 4)     | Map to (``$block_size`` / 4) indirect blocks (1024 if 4KiB blocks)                                      |   |                                          |
418c2ecf20Sopenharmony_ci|                     | |                                | |                                |                                                                                                         |   |                                          |
428c2ecf20Sopenharmony_ci|                     | |                                | |                                | +------------------------------+--------------------------------------------------------------------+   |   |                                          |
438c2ecf20Sopenharmony_ci|                     | |                                | |                                | | Indirect Block Offset        | Where It Points                                                    |   |   |                                          |
448c2ecf20Sopenharmony_ci|                     | |                                | |                                | +==============================+====================================================================+   |   |                                          |
458c2ecf20Sopenharmony_ci|                     | |                                | |                                | | 0 to (``$block_size`` / 4)   | Direct map to (``$block_size`` / 4) blocks (1024 if 4KiB blocks)   |   |   |                                          |
468c2ecf20Sopenharmony_ci|                     | |                                | |                                | +------------------------------+--------------------------------------------------------------------+   |   |                                          |
478c2ecf20Sopenharmony_ci|                     | |                                | +--------------------------------+---------------------------------------------------------------------------------------------------------+   |                                          |
488c2ecf20Sopenharmony_ci|                     | +--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+                                          |
498c2ecf20Sopenharmony_ci+---------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
50