Whamcloud - gitweb
ChangeLog, util.c:
authorTheodore Ts'o <tytso@mit.edu>
Mon, 30 Oct 2000 14:33:49 +0000 (14:33 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 30 Oct 2000 14:33:49 +0000 (14:33 +0000)
  util.c (get_backup_sb): Calculate backup superblock correctly when the
   blocksize is > 1k.

e2fsck/ChangeLog
e2fsck/util.c

index ae9a577..07c24e7 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-30    <tytso@snap.thunk.org>
+
+       * util.c (get_backup_sb): Calculate backup superblock correctly
+               when the blocksize is > 1k.
+
 2000-10-26    <tytso@snap.thunk.org>
 
        * jfs.h, jfs_compat.h, journal.c: Updated to include the
index 0534b11..9414ee9 100644 (file)
@@ -318,7 +318,7 @@ blk_t get_backup_sb(ext2_filsys fs)
 {
        if (!fs || !fs->super)
                return 8193;
-       return fs->super->s_blocks_per_group + 1;
+       return fs->super->s_blocks_per_group + fs->super->s_first_data_block;
 }
 
 /*