Whamcloud - gitweb
mke2fs: fix hugefile creation so the hugefile(s) are contiguous
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Jun 2017 22:39:55 +0000 (18:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 Jun 2017 21:26:33 +0000 (17:26 -0400)
commitfff2d1273f45b161096fd9942dd637a691ca6158
tree35c7c4b75715ef22b4098a641332d6bea5368f41
parentc8a1566da4b46e34475c4b4b555164d9a0cc3490
mke2fs: fix hugefile creation so the hugefile(s) are contiguous

Commit 4f868703f6f2: "libext2fs: use fallocate for creating journals
and hugefiles" introduced a regression for the mke2fs hugefile
feature.  The problem is that the fallocate library function
intersperses the extent tree metadata blocks with the data blocks, and
this violates the hugefile guarantee that the created files should be
physically contiguous on disk.

Unfortuantely the m_hugefile regression test was flawed, and didn't
pick up the regression.

This commit fixes the regression test so that it detects the problem
before fixing mke2fs, and also fixes the mke2fs hugefile by reverting
the mke2fs hugefile portion of commit 4f868703f6f2.

Google-Bug-Id: 62791459

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mk_hugefiles.c
misc/mke2fs.conf.5.in
tests/m_hugefile/expect
tests/m_hugefile/script