All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] image_types: ext4 should always have large inodes
@ 2021-07-16 12:24 Ross Burton
  2021-07-16 14:26 ` [OE-core] " Alexandre Belloni
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2021-07-16 12:24 UTC (permalink / raw)
  To: openembedded-core

mkfs.ext4 has logic where "small" file systems use "good old" 128-byte
inodes instead of the default 256-byte inodes.  This means that small
filesystems are not 2038-safe as they only support 32-bit timestamps.

However, "small" is defined as "less than 500MB", which is a fair number
of filesystems in OpenEmbedded, especially when filesystems may be
created small and expanded later.

To avoid a discussion over how small a file system should be before
it shouldn't be 2038-safe, simply build all filesystems with the default
type so they all have 256-byte inodes and thus 64-bit timestamps.

[ YOCTO #14478 ]

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/image_types.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 954d6739ec..3dad86caa7 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -90,7 +90,7 @@ oe_mkext234fs () {
 
 IMAGE_CMD_ext2 = "oe_mkext234fs ext2 ${EXTRA_IMAGECMD}"
 IMAGE_CMD_ext3 = "oe_mkext234fs ext3 ${EXTRA_IMAGECMD}"
-IMAGE_CMD_ext4 = "oe_mkext234fs ext4 ${EXTRA_IMAGECMD}"
+IMAGE_CMD_ext4 = "oe_mkext234fs ext4 -T default ${EXTRA_IMAGECMD}"
 
 MIN_BTRFS_SIZE ?= "16384"
 IMAGE_CMD_btrfs () {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-16 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-16 12:24 [PATCH] image_types: ext4 should always have large inodes Ross Burton
2021-07-16 14:26 ` [OE-core] " Alexandre Belloni
2021-07-16 18:45   ` Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.