From 48ddc87de7010dc11e33929bdc3607bb081b4900 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 f5fdd6d6fdc..ac46610c89c 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 6c71980685495b188a6185051f457b24cfe62848 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))