From 4b8b59a7cd0e1413dcf9973c4bbd7eb65a444c4c Mon Sep 17 00:00:00 2001 From: Brian Swetland Date: Thu, 23 Sep 2010 16:06:23 -0700 Subject: [PATCH] zero the entire journal instead of just the first block I'm seeing some weeeeird stuff with sparse ext4 images where files sometimes seem to come back from the dead after reflashing, etc. My crazy theory is they are hiding in the journal. Colin humored me and pointed out how to ensure it's entirely zero'd. Change-Id: I4d14a2d4879c10540ef3c677ceb523bc061c1ec1 --- ext4_utils/ext4_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext4_utils/ext4_utils.c b/ext4_utils/ext4_utils.c index f34985f5..60a4da33 100644 --- a/ext4_utils/ext4_utils.c +++ b/ext4_utils/ext4_utils.c @@ -305,7 +305,7 @@ void ext4_create_journal_inode() u8 *journal_data = inode_allocate_data_extents(inode, info.journal_blocks * info.block_size, - info.block_size); + info.journal_blocks * info.block_size); if (!journal_data) { error("failed to allocate extents for journal data"); return; -- 2.11.0