Blame SOURCES/e2fsprogs-1.40.4-sb_feature_check_ignore.patch

ec15cf
Index: e2fsprogs-1.41.5/e2fsck/super.c
ec15cf
===================================================================
ec15cf
--- e2fsprogs-1.41.5.orig/e2fsck/super.c
ec15cf
+++ e2fsprogs-1.41.5/e2fsck/super.c
ec15cf
@@ -869,7 +869,11 @@ void check_super_block(e2fsck_t ctx)
ec15cf
  * unfortunately, we shouldn't ignore it since if it's not set in the
ec15cf
  * backup, the extended attributes in the filesystem will be stripped
ec15cf
  * away.
ec15cf
+ *
ec15cf
+ * Well, I'm still going that route for now, 'til I do something
ec15cf
+ * better.  Full-fsck after a fresh install is just no good.  -ERS
ec15cf
  */
ec15cf
+#define FEATURE_COMPAT_IGNORE          (EXT2_FEATURE_COMPAT_EXT_ATTR)
ec15cf
 #define FEATURE_RO_COMPAT_IGNORE	(EXT2_FEATURE_RO_COMPAT_LARGE_FILE| \
ec15cf
 					 EXT4_FEATURE_RO_COMPAT_DIR_NLINK)
ec15cf
 #define FEATURE_INCOMPAT_IGNORE		(EXT3_FEATURE_INCOMPAT_EXTENTS| \
ec15cf
@@ -921,6 +925,9 @@ int check_backup_super_block(e2fsck_t ct
ec15cf
 		    (EXT2_INODE_SIZE(backup_sb) < EXT2_GOOD_OLD_INODE_SIZE))
ec15cf
 			continue;
ec15cf
 
ec15cf
+#define SUPER_COMPAT_DIFFERENT(x)	\
ec15cf
+	((fs->super->x & ~FEATURE_COMPAT_IGNORE) !=	\
ec15cf
+	 (backup_sb->x & ~FEATURE_COMPAT_IGNORE))
ec15cf
 #define SUPER_INCOMPAT_DIFFERENT(x)	\
ec15cf
 	((fs->super->x & ~FEATURE_INCOMPAT_IGNORE) !=	\
ec15cf
 	 (backup_sb->x & ~FEATURE_INCOMPAT_IGNORE))
ec15cf
@@ -930,7 +937,7 @@ int check_backup_super_block(e2fsck_t ct
ec15cf
 #define SUPER_DIFFERENT(x)		\
ec15cf
 	(fs->super->x != backup_sb->x)
ec15cf
 
ec15cf
-		if (SUPER_DIFFERENT(s_feature_compat) ||
ec15cf
+		if (SUPER_COMPAT_DIFFERENT(s_feature_compat) ||
ec15cf
 		    SUPER_INCOMPAT_DIFFERENT(s_feature_incompat) ||
ec15cf
 		    SUPER_RO_COMPAT_DIFFERENT(s_feature_ro_compat) ||
ec15cf
 		    SUPER_DIFFERENT(s_blocks_count) ||