[klibc] [PATCH] recognise ext4 without journal

Colin Watson cjwatson at ubuntu.com
Sun Oct 4 15:03:57 PDT 2009


ext4 no longer requires a journal. Compare:

  http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=commitdiff;h=a90f5391dda78f7bc4a8196a78355584ace0adf5

Signed-off-by: Colin Watson <cjwatson at ubuntu.com>
---
 usr/kinit/fstype/fstype.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/usr/kinit/fstype/fstype.c b/usr/kinit/fstype/fstype.c
index 69e0e30..bf63b1b 100644
--- a/usr/kinit/fstype/fstype.c
+++ b/usr/kinit/fstype/fstype.c
@@ -196,14 +196,6 @@ static int base_ext4_image(const void *buf, unsigned long long *bytes,
 	if (sb->s_magic != __cpu_to_le16(EXT2_SUPER_MAGIC))
 		return 0;
 
-	/*
-	 * For now, ext4 requires a journal -- but this may change
-	 * soon if we get that patch from Google.  :-)
-	 */
-	if ((sb->s_feature_compat
-	     & __cpu_to_le32(EXT3_FEATURE_COMPAT_HAS_JOURNAL)) == 0)
-		return 0;
-
 	/* There is at least one feature not supported by ext3 */
 	if ((sb->s_feature_incompat
 	     & __cpu_to_le32(EXT3_FEATURE_INCOMPAT_UNSUPPORTED)) ||
-- 
1.6.3.3



More information about the klibc mailing list