kumquat-buildroot/fs
Yann E. MORIN 319d2735f9 fs/ext2: generate Y2K38-resilient filesystems
When creating a filesystem, mkfs.ext will chose the inode size depending
on the size of the filesystem. Small filesystem get 128-bytes inodes,
while bigger filesystems use 256-byte inodes (inode must be a power of 2
larger or equal to 128, and smaller or equal to the blocksize).

However, 128-byte inodes can't store timestamps past the dreaded
2038-01-19 03:14:07Z deadline, while inodes larger than or equal to 256
do not have the issue.

It turns out that the tipping point to decide whether a filesystem is
small or big, is about around the size of the filesystems we generate
for our runtime tests. This causes the kernel to emit warning like:

    ext2 filesystem being remounted at / supports timestamps until 2038 (0x7fffffff)

We add a new option to our ext2 filesystem, so that user can specify the
size of the inode. That new option defaults to 256 to be resilient to
the Y2K38 problem.

Note: it was already possible for users to explicitly pass the -I
option, through BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS. We could have
chosen to extend the existing value with a -I 256, but that is not
satisfactory. Indeed, we do want to ensure that the default is now
Y2K38-OK, even for existing configurations that did not have explicit
setting.

We also pass that new option before the user-specified arbitrary ones,
so that BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS still wins (in case -I was
set there).

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
[Peter: tweak help text]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-12-14 20:29:11 +01:00
..
axfs
btrfs
cloop
cpio fs/cpio: don't fail systems without /dev/null 2022-11-01 21:44:49 +01:00
cramfs
erofs fs/erofs: add big pcluster support 2021-07-19 22:34:21 +02:00
ext2 fs/ext2: generate Y2K38-resilient filesystems 2022-12-14 20:29:11 +01:00
f2fs
initramfs
iso9660 fs/iso9660: add support for hybrid image using Grub2 on BIOS and EFI 2021-09-29 22:58:57 +02:00
jffs2
oci fs/oci: entrypoint and command are space-separated lists 2022-05-15 22:03:26 +02:00
romfs
squashfs fs/squashfs: fix BR2_TARGET_ROOTFS_SQUASHFS_BS_8K 2022-05-29 22:28:21 +02:00
tar fs/tar: add option for zstd compression 2022-07-23 22:40:01 +02:00
ubi
ubifs
yaffs2
common.mk fs/common.mk: use find instead of shell glob patterns 2022-03-12 17:45:21 +01:00
Config.in fs: new OCI filesystem type 2021-09-11 14:52:41 +02:00