1 .. SPDX-License-Identifier: GPL-2.0
6 ext4 allocates storage space in units of “blocks”. A block is a group of
7 sectors between 1KiB and 64KiB, and the number of sectors must be an
8 integral power of 2. Blocks are in turn grouped into larger units called
9 block groups. Block size is specified at mkfs time and typically is
10 4KiB. You may experience mounting problems if block size is greater than
11 page size (i.e. 64KiB blocks on a i386 which only has 4KiB memory
12 pages). By default a filesystem can contain 2^32 blocks; if the '64bit'
13 feature is enabled, then a filesystem can have 2^64 blocks.
15 For 32-bit filesystems, limits are as follows:
41 * - Blocks Per Block Group
46 * - Inodes Per Block Group
56 * - Blocks Per File, Extents
61 * - Blocks Per File, Block Maps
65 - 4,398,314,962,956 (really 2^32 due to field size limitations)
66 * - File Size, Extents
71 * - File Size, Block Maps
77 For 64-bit filesystems, limits are as follows:
103 * - Blocks Per Block Group
108 * - Inodes Per Block Group
118 * - Blocks Per File, Extents
123 * - Blocks Per File, Block Maps
127 - 4,398,314,962,956 (really 2^32 due to field size limitations)
128 * - File Size, Extents
133 * - File Size, Block Maps
139 Note: Files not using extents (i.e. files using block maps) must be
140 placed within the first 2^32 blocks of a filesystem. Files with extents
141 must be placed within the first 2^48 blocks of a filesystem. It's not
142 clear what happens with larger filesystems.