e2fsprogs/e2fsprogs-journal-move.patch
Eric Sandeen 39baca9f1c * Thu Oct 02 2008 Eric Sandeen <sandeen@redhat.com> 1.41.2-1
- New upstream version
- Updated default dir hash (half_md4) for better perf & fewer collisions
- Fixed ext4 online resizing with flex_bg
- ext4 journal now in extents format and in middle of filesystem
- fix unreadable e2image files
- fix file descriptor leak in libcom_err (#464689)
2008-10-02 19:19:50 +00:00

20 lines
732 B
Diff

Only move ext4's journal for now; I don't want to change this behavior
for ext3 late in the release process.
Index: e2fsprogs/lib/ext2fs/mkjournal.c
===================================================================
--- e2fsprogs.orig/lib/ext2fs/mkjournal.c
+++ e2fsprogs/lib/ext2fs/mkjournal.c
@@ -332,6 +332,10 @@ static errcode_t write_journal_inode(ext
es.goal = (fs->super->s_blocks_per_group * group) +
fs->super->s_first_data_block;
+ /* quick conservative hack: if not ext4, just keep the goal at 0 */
+ if (!(fs->super->s_feature_incompat & EXT3_FEATURE_INCOMPAT_EXTENTS))
+ es.goal = 0;
+
retval = ext2fs_block_iterate2(fs, journal_ino, BLOCK_FLAG_APPEND,
0, mkjournal_proc, &es);
if (es.err) {