Whamcloud - gitweb
e2fsck: Don't clear the LARGE_FILES feature flag
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Feb 2008 05:00:30 +0000 (00:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Feb 2008 05:00:30 +0000 (00:00 -0500)
Stop clearing the EXT2_FEATURE_RO_COMPAT_LARGE_FILE flag automatically
if there are no large files in the filesystem.  It's been almost a
decade since there have been kernels that don't support this flag, and
e2fsck clears it quietly without telling the user why the filesystem
has been changed.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass2.c

index f58e5a9..6fb2ed7 100644 (file)
@@ -275,15 +275,6 @@ void e2fsck_pass2(e2fsck_t ctx)
                        ext2fs_update_dynamic_rev(fs);
                        ext2fs_mark_super_dirty(fs);
                }
-       } else if (!ctx->large_files &&
-           (sb->s_feature_ro_compat &
-             EXT2_FEATURE_RO_COMPAT_LARGE_FILE)) {
-               if (fs->flags & EXT2_FLAG_RW) {
-                       sb->s_feature_ro_compat &= 
-                               ~EXT2_FEATURE_RO_COMPAT_LARGE_FILE;
-                       fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
-                       ext2fs_mark_super_dirty(fs);
-               }
        }
        
 #ifdef RESOURCE_TRACK