shithub: lwext4

Download patch

ref: 72e4738cc40a0a1c2b1e944353badcd5a169c8f4
parent: 45ad29153e73f1b82c9389d57a2f77fdda5d7b2d
author: ngkaho1234 <[email protected]>
date: Sun Oct 25 21:42:28 EDT 2015

Now we should support the metadata_csum flag

--- a/lwext4/ext4_super.c
+++ b/lwext4/ext4_super.c
@@ -101,7 +101,7 @@
 static void ext4_sb_set_csum(struct ext4_sblock *s)
 {
 	if (!ext4_sb_has_feature_read_only(s,
-					   EXT4_FEATURE_INCOMPAT_BG_USE_META_CSUM))
+					   EXT4_FEATURE_RO_COMPAT_METADATA_CSUM))
 		return;
 
 	s->checksum = to_le32(ext4_sb_csum(s));
--- a/lwext4/ext4_types.h
+++ b/lwext4/ext4_types.h
@@ -268,6 +268,7 @@
 
 #define EXT4_FEATURE_RO_COMPAT_SUPP                                            \
 	(EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER |                                 \
+	 EXT4_FEATURE_RO_COMPAT_METADATA_CSUM |                                 \
 	 EXT4_FEATURE_RO_COMPAT_LARGE_FILE | EXT4_FEATURE_RO_COMPAT_GDT_CSUM | \
 	 EXT4_FEATURE_RO_COMPAT_DIR_NLINK |                                    \
 	 EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE |                                  \