]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsprogs: add large_file to base mkfs features
authorEric Sandeen <sandeen@redhat.com>
Wed, 1 Oct 2014 12:33:54 +0000 (08:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 1 Oct 2014 12:33:54 +0000 (08:33 -0400)
commitc6889a6430e0819bb3d62fc1d40af68d4289ee8a
tree18c00ef7bd101d2a03cb776bef4f3bd67be78325
parent17c1fa6e2634e840e4c2484f51545a2ca74bbc8c
e2fsprogs: add large_file to base mkfs features

large_file (> 2G) support has been around since at least kernel 2.4;
mkfs of any sufficiently large filesystem sets it "accidentally"
when the resize inode exceeds 2G.  This leaves very small
filesystems lacking the feature, which potentially changes
their behavior & codepaths the first time a > 2G file gets
written.

There's really no reason to be making fresh filesystems which
strive to keep compatibility with 10 year old kernels; just
enable large_file at mkfs time.  This is particularly obvious
for ext4 fielsystems, which set huge_file by default, but not
necessarily large_file.

If old-kernel compatibility is desired, mke2fs.conf can be
modified locally to remove the feature.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c
misc/mke2fs.conf.in