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