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>
Mon, 5 Jul 2010 19:06:37 +0000 (15:06 -0400)
commit22ff06d5f7a90914f7a90bae420e5be7d2e02ce3
treeb9f8e94d6cc6f365ffeb200623709fe5d74c7595
parentb887f08f959fa3ef4ead9b6e2fd71becf4877a40
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