mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
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 <jpiotrowski@microsoft.com>
This commit is contained in:
parent
5c532decd9
commit
7205c2d742
@ -403,7 +403,7 @@ def FormatExt(part, device):
|
|||||||
'-t', part['fs_type'],
|
'-t', part['fs_type'],
|
||||||
'-b', part['fs_block_size'],
|
'-b', part['fs_block_size'],
|
||||||
'-i', part.get('fs_bytes_per_inode', 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,
|
device,
|
||||||
part['fs_blocks']])
|
part['fs_blocks']])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user