diff options
author | Ross Burton <ross@burtonini.com> | 2021-08-09 16:36:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-12 06:26:15 +0100 |
commit | 88fe4195439b1f217780b9bf4cc4da85af0af153 (patch) | |
tree | a5ee8f845f6c5c9b08ba1fcb45f260257eaa1152 /meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb | |
parent | 684623534501c2069a55e1cee1833448cd465e88 (diff) | |
download | poky-88fe4195439b1f217780b9bf4cc4da85af0af153.tar.gz |
e2fsprogs: ensure small images have 256-byte inodes
e2fsprogs calls filesystems larger than 3MB but smaller than 512MB
"small", which has some implications:
- blocksize 1024 instead of 4096
- inode_ratio 4096 instead of 16384
- inode_size 128 instead of 256
The outcome of the inode size dropping to 128 bytes is that they cannot
store 64-bit timestamps, so are not Y2038-safe.
A previous attempt to solve this problem[1] changed some of the canned
wic files to pass -T default to mkfs.ext4, but this only covered wic
images and not traditional images. Also, actually small filesystems,
for example a core-image-minimal, will happily be tens of megabytes and
with the "default" options will result in an image which runs out of
blocks before it runs out of space:
mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system
Considering that many OpenEmbedded images are in fact "small", being
2038-safe is worth the marginal increase is disk usage. This patch
alters the small configuration in native builds so that it also has
256-byte inodes. Target is unchanged so that standard behaviour is
maintained outside of the build.
This is actually the same underlying patch that Mathieu Dubois-Briand
sent in April, but the wic change in [1] was accepted instead. I believe
that is the wrong approach and this approach covers more cases.
[ YOCTO #14478 ]
[1] openembedded-core eecbe62
[2] https://lists.openembedded.org/g/openembedded-core/message/150298
(From OE-Core rev: 9ab0ae83a24ee99e69f8ac54256b253a122aef8a)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb')
-rw-r--r-- | meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb index d68d131e0a..8cc046c794 100644 --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.2.bb | |||
@@ -10,6 +10,7 @@ SRC_URI += "file://remove.ldconfig.call.patch \ | |||
10 | 10 | ||
11 | SRC_URI:append:class-native = " file://e2fsprogs-fix-missing-check-for-permission-denied.patch \ | 11 | SRC_URI:append:class-native = " file://e2fsprogs-fix-missing-check-for-permission-denied.patch \ |
12 | file://quiet-debugfs.patch \ | 12 | file://quiet-debugfs.patch \ |
13 | file://big-inodes-for-small-fs.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | 16 | ||