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