ChangeLog, pass1.c:
pass1.c (e2fsck_pass1): Use ext2fs_sb structure for compatibility with
older kernels.
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog
index 61d9d11..de11531 100644
--- a/e2fsck/ChangeLog
+++ b/e2fsck/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 6 10:32:11 1998 Theodre Ts'o <tytso@lurch.mit.edu>
+
+ * pass1.c (e2fsck_pass1): Use ext2fs_sb structure for
+ compatibility with older kernels.
+
1998-06-25 Theodore Ts'o <tytso@rsts-11.mit.edu>
* unix.c (e2fsck_update_progress): Remove unused variables.
diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c
index 0121a69..c834a11 100644
--- a/e2fsck/pass1.c
+++ b/e2fsck/pass1.c
@@ -149,6 +149,7 @@
unsigned char frag, fsize;
struct problem_context pctx;
struct scan_callback_struct scan_struct;
+ struct ext2fs_sb *sb;
#ifdef RESOURCE_TRACK
init_resource_track(&rtrack);
@@ -503,19 +504,20 @@
ext2fs_free_block_bitmap(ctx->block_illegal_map);
ctx->block_illegal_map = 0;
+ sb = (struct ext2fs_sb *) fs->super;
if (ctx->large_files &&
- !(fs->super->s_feature_ro_compat &
+ !(sb->s_feature_ro_compat &
EXT2_FEATURE_RO_COMPAT_LARGE_FILE)) {
if (fix_problem(ctx, PR_1_FEATURE_LARGE_FILES, &pctx)) {
- fs->super->s_feature_ro_compat |=
+ sb->s_feature_ro_compat |=
EXT2_FEATURE_RO_COMPAT_LARGE_FILE;
ext2fs_mark_super_dirty(fs);
}
} else if (!ctx->large_files &&
- (fs->super->s_feature_ro_compat &
+ (sb->s_feature_ro_compat &
EXT2_FEATURE_RO_COMPAT_LARGE_FILE)) {
if (fs->flags & EXT2_FLAG_RW) {
- fs->super->s_feature_ro_compat &=
+ sb->s_feature_ro_compat &=
~EXT2_FEATURE_RO_COMPAT_LARGE_FILE;
ext2fs_mark_super_dirty(fs);
}