From 7205c2d742012d1db62b93eb4d33567a51d626c9 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Wed, 21 Jun 2023 13:30:20 +0200 Subject: [PATCH 1/2] build_library/disk_util: Switch default ext4 inode size to 256 bytes Inode sizes smaller than 256: - don't support extended metadata (nanosecond timestamp resolution) - cannot handle dates beyond 2038 - are deprecated Change the default from 128 to 256. There is no way to apply this change on a mounted filesystem so this change will only apply to new deployments. Fixes: flatcar/flatcar#1082 Signed-off-by: Jeremi Piotrowski --- build_library/disk_util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/disk_util b/build_library/disk_util index e47f0932a23..b00e54d11ef 100755 --- a/build_library/disk_util +++ b/build_library/disk_util @@ -403,7 +403,7 @@ def FormatExt(part, device): '-t', part['fs_type'], '-b', part['fs_block_size'], '-i', part.get('fs_bytes_per_inode', part['fs_block_size']), - '-I', part.get('fs_inode_size', 128), + '-I', part.get('fs_inode_size', 256), device, part['fs_blocks']]) From eae39e4a90bb43f841f561f3f03d89e29decc1d7 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Thu, 22 Jun 2023 09:43:13 +0200 Subject: [PATCH 2/2] changelog: Add entry for ext4 inode size change Signed-off-by: Jeremi Piotrowski --- changelog/changes/2023-06-22-ext4-inode-size.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/changes/2023-06-22-ext4-inode-size.md diff --git a/changelog/changes/2023-06-22-ext4-inode-size.md b/changelog/changes/2023-06-22-ext4-inode-size.md new file mode 100644 index 00000000000..dda2fcbd18b --- /dev/null +++ b/changelog/changes/2023-06-22-ext4-inode-size.md @@ -0,0 +1 @@ +- Changed ext4 inode size of root partition to 256 bytes. This improves compatibility with applications and is necessary for 2038 readiness ([Flatcar#1082](https://github.com/flatcar/Flatcar/issues/1082))