Whamcloud - gitweb
e2fsck: Reduce unnecessary I/O when checking backup superblock
authorTheodore Ts'o <tytso@mit.edu>
Thu, 23 Apr 2009 05:27:07 +0000 (01:27 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Apr 2009 05:27:07 +0000 (01:27 -0400)
commit982dd30ce87d5fdfb9a6de5732633f31b3840090
tree3dd6967e3b49e0db39d99626e4bcdf472f0a7fc3
parent69d0edfd01ef81efd9f880231999975582ea8b60
e2fsck: Reduce unnecessary I/O when checking backup superblock

E2fsck needs to check to see if the backup superblock differs from the
primary superblock.  Previously it was doing so by calling
ext2fs_open(), which does a lot of unnecessary work, including reading
all of the backup block group descriptors.  Avoid this by reading in
the backup superblock directly.

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