diff --git a/lwext4/ext4_super.c b/lwext4/ext4_super.c index f9c338c..cfe7b53 100644 --- a/lwext4/ext4_super.c +++ b/lwext4/ext4_super.c @@ -101,7 +101,7 @@ static bool ext4_sb_verify_csum(struct ext4_sblock *s) 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)); diff --git a/lwext4/ext4_types.h b/lwext4/ext4_types.h index dab9434..b75c3c5 100644 --- a/lwext4/ext4_types.h +++ b/lwext4/ext4_types.h @@ -268,6 +268,7 @@ struct ext4_sblock { #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 | \