Whamcloud - gitweb
e2fsck: Add missing ext2fs_close() call when going back to original superblock
authorTheodore Ts'o <tytso@mit.edu>
Mon, 5 Jul 2010 19:06:37 +0000 (15:06 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Apr 2011 16:05:54 +0000 (16:05 +0000)
commit65351beb426bf4f4c75ee1dce57f459aca1be2dd
treefe5ca045e71e5c2dec8dfd929e8984fd15ed7207
parent87958289c17b15cd45c25e05c1e82654d9cbb737
e2fsck: Add missing ext2fs_close() call when going back to original superblock

In the case where the original superblock and the backup superblock
are both invalid in some way, e2fsck will try to go back to the
orignal superblock.  To do that, it must close the attempted open
using the backup superblock first (since otherwise the exclusive open
will prevent the subsequent open from succeding).

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c