overview.rst 1002 B

1234567891011121314151617181920212223242526
  1. .. SPDX-License-Identifier: GPL-2.0
  2. High Level Design
  3. =================
  4. An ext4 file system is split into a series of block groups. To reduce
  5. performance difficulties due to fragmentation, the block allocator tries
  6. very hard to keep each file's blocks within the same group, thereby
  7. reducing seek times. The size of a block group is specified in
  8. ``sb.s_blocks_per_group`` blocks, though it can also calculated as 8 \*
  9. ``block_size_in_bytes``. With the default block size of 4KiB, each group
  10. will contain 32,768 blocks, for a length of 128MiB. The number of block
  11. groups is the size of the device divided by the size of a block group.
  12. All fields in ext4 are written to disk in little-endian order. HOWEVER,
  13. all fields in jbd2 (the journal) are written to disk in big-endian
  14. order.
  15. .. include:: blocks.rst
  16. .. include:: blockgroup.rst
  17. .. include:: special_inodes.rst
  18. .. include:: allocators.rst
  19. .. include:: checksums.rst
  20. .. include:: bigalloc.rst
  21. .. include:: inlinedata.rst
  22. .. include:: eainode.rst