Files
poky/meta/recipes-devtools
Ross Burton 02c3c6dbc8 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: e89bac87c91e943060662be04775a1ff8e4c4f22)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9ab0ae83a24ee99e69f8ac54256b253a122aef8a)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-08-26 08:32:14 +01:00
..
2021-07-20 19:05:45 +01:00
2021-02-17 11:01:17 +00:00
2021-02-19 11:17:10 +00:00
2021-05-15 17:18:21 +01:00
2021-01-20 22:46:18 +00:00
2021-03-10 10:30:39 +00:00
2021-03-20 18:54:56 +00:00
2021-06-03 16:31:02 +01:00
2021-03-31 00:06:23 +01:00
2021-08-26 08:32:13 +01:00
2020-07-27 19:58:09 +01:00
2021-03-10 10:30:39 +00:00
2021-03-01 11:12:16 +00:00
2019-05-27 17:06:34 +01:00
2020-03-08 08:21:11 +00:00
2019-02-15 16:05:37 +00:00
2020-12-31 11:53:26 +00:00
2021-01-01 23:15:13 +00:00
2021-05-11 12:02:29 +01:00
2021-07-20 19:05:45 +01:00
2020-06-09 13:13:59 +01:00
2021-06-03 16:31:02 +01:00
2021-08-06 09:59:14 +01:00
2021-08-18 18:00:24 +01:00
2021-04-30 14:37:26 +01:00
2021-05-04 22:57:51 +01:00
2021-05-15 17:18:21 +01:00
2021-03-20 18:54:56 +00:00
2021-03-01 11:12:16 +00:00
2021-03-06 22:39:04 +00:00