gentoo-ebuilds/sys-fs/e2fsprogs/files/e2fsprogs-1.47.0-disable-metadata_csum_seed-and-orphan_file-by-default.patch
Sam James 747be80bc0
sys-fs/e2fsprogs: disable metadata_csum_seed and orphan_file features for new fs by default
This keeps support for metadata_csum_seed and orphan_file but doesn't *enable*
it by default in new filesystems.

Unfortunately, support was added in the same e2fsprogs release which enabled
it by default. By changing the defaults as Debian has, we give people a chance
to upgrade their initramfses, live media, etc, so they can actually mount partitions
created by such a new e2fsprogs.

It feels wrong to have to do this but I don't see much other choice. At least we're
in good company.

Link: https://lwn.net/Articles/923969/
Bug: https://bugs.gentoo.org/904093
Bug: https://bugs.gentoo.org/904048
Signed-off-by: Sam James <sam@gentoo.org>
2023-04-10 08:31:40 +01:00

30 lines
1.1 KiB
Diff

https://lwn.net/Articles/923969/
https://sources.debian.org/data/main/e/e2fsprogs/1.47.0-2/debian/patches/disable-metadata_csum_seed-and-orphan_file-by-default
Description: Disable metadata_csum_seed and orphan_file by default for Debian
.
There are a lot of debian packages that assume that mkfs.ext4 for
Debian N will work on Debian N-1 (and sometimes N-2, N-3, etc.). This
is a bad assumption, but it's too late to fix this for Debian
Bookworm.
.
So revert making these feature a default for now. We will enable it
again post Bookworm.
Author: Theodore Ts'o <tytso@mit.edu>
Origin: vendor
Forwarded: not-needed
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031622
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030939
--- a/misc/mke2fs.conf.in
+++ b/misc/mke2fs.conf.in
@@ -11,7 +11,7 @@
features = has_journal
}
ext4 = {
- features = has_journal,extent,huge_file,flex_bg,metadata_csum,metadata_csum_seed,64bit,dir_nlink,extra_isize,orphan_file
+ features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
}
small = {
blocksize = 1024
--
2.31.0