diff options
author | Dermot Bradley <dermot_bradley@yahoo.com> | 2020-12-12 17:03:34 +0000 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2020-12-14 10:35:23 +0000 |
commit | 383f00a48dd8b7ca5134558f572e1fcdd406a411 (patch) | |
tree | 0997a8f2f817b82b8c2b2f9befa663e8569b0a18 | |
parent | d3e7e11b71b819060cdba1c3511ed90e4f3d0f57 (diff) | |
download | aports-383f00a48dd8b7ca5134558f572e1fcdd406a411.tar.gz aports-383f00a48dd8b7ca5134558f572e1fcdd406a411.tar.bz2 aports-383f00a48dd8b7ca5134558f572e1fcdd406a411.tar.xz |
main/e2fsprogs: EXT2/3/4 configuration update for Y2038
Increase size of inodes used when formatting EXT2/3/4 filesystems
of <=512M in size from 128 bytes to 256 bytes. 128 byte inodes are
too small to store timestamps beyond the year 2038.
-rw-r--r-- | main/e2fsprogs/APKBUILD | 9 | ||||
-rw-r--r-- | main/e2fsprogs/ensure-small-filesystems-are-Y2038-ok.patch | 36 |
2 files changed, 42 insertions, 3 deletions
diff --git a/main/e2fsprogs/APKBUILD b/main/e2fsprogs/APKBUILD index cc7e3aef01..d4aedaadfc 100644 --- a/main/e2fsprogs/APKBUILD +++ b/main/e2fsprogs/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=e2fsprogs pkgver=1.45.6 -pkgrel=0 +pkgrel=1 pkgdesc="Standard Ext2/3/4 filesystem utilities" url="http://e2fsprogs.sourceforge.net" arch="all" @@ -11,7 +11,9 @@ depends_dev="util-linux-dev" makedepends="$depends_dev linux-headers" checkdepends="diffutils perl" subpackages="$pkgname-static $pkgname-dev $pkgname-doc libcom_err $pkgname-libs $pkgname-extra" -source="$pkgname-$pkgver.tar.gz::https://github.com/tytso/e2fsprogs/archive/v$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/tytso/e2fsprogs/archive/v$pkgver.tar.gz + ensure-small-filesystems-are-Y2038-ok.patch + " # secfixes: # 1.45.5-r0: @@ -89,4 +91,5 @@ static() { mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib } -sha512sums="0de9ee4df69d6be79f0c23baebf32266f0c0fb15190181edf9ebc78d486458b34229c18466646221566d16bc75a011cbe311fd34a72da53340e8de340f064cf9 e2fsprogs-1.45.6.tar.gz" +sha512sums="0de9ee4df69d6be79f0c23baebf32266f0c0fb15190181edf9ebc78d486458b34229c18466646221566d16bc75a011cbe311fd34a72da53340e8de340f064cf9 e2fsprogs-1.45.6.tar.gz +daf63f8ca704eaa9a3293444469ef1a36c09806614d20e844b451af2426d5c8611a61669c99e4702f1fd787145cf9a34f1345ae5ed15ef47c41ca02f03302231 ensure-small-filesystems-are-Y2038-ok.patch" diff --git a/main/e2fsprogs/ensure-small-filesystems-are-Y2038-ok.patch b/main/e2fsprogs/ensure-small-filesystems-are-Y2038-ok.patch new file mode 100644 index 0000000000..df77148b57 --- /dev/null +++ b/main/e2fsprogs/ensure-small-filesystems-are-Y2038-ok.patch @@ -0,0 +1,36 @@ +From: Dermot Bradley <dermot_bradley@yahoo.com> +Date: Thu, 10 Dec 2020 23:52 +0000 +Subject: ensure that small filesystems are Y2038 ok + +When formatting a partition with a EXT2/3/4 filesystem, if the partition +specified is 512M or smaller in size then the "small" entry from +/etc/mke2fs.conf is used, in addition to the defaults in that file, for +the new filesystem's settings. Currently the "small" entry specifies an +inode size of 128bytes which is insufficient to hold timestamps beyond +2038. + +After booting a system with an affected EXT2/3/4 filesystem the kernel +buffer will show a warning: + +$ dmesg | grep 2038 + + filesystem being remounted at / supports timestamps until 2038 + +This patch removes the 128 byte inode size entry from the 'small' +definition and so the formatting tool will fallback to the default +value of 256 byte inodes which will ensure no Y2038 issues. The disk +space overhead when formatting after this change will slightly increase. + +--- + +diff -aur a/misc/mke2fs.conf.in b/misc/mke2fs.conf.in +--- a/misc/mke2fs.conf.in ++++ b/misc/mke2fs.conf.in +@@ -16,7 +16,6 @@ + } + small = { + blocksize = 1024 +- inode_size = 128 + inode_ratio = 4096 + } + floppy = { |