Whamcloud - gitweb
e2fsck: Fix e2fsck automatic blocksize detetion
authorTheodore Ts'o <tytso@mit.edu>
Tue, 9 Sep 2008 19:02:24 +0000 (15:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 9 Sep 2008 19:02:24 +0000 (15:02 -0400)
commit52771ab59145d66b50399a8b953b8181cb2d5b04
tree7d964bb35b169753b892ae35f631f2360cc5ab29
parent5bf3f80da02313114c2fcc182f65b55943a82d92
e2fsck: Fix e2fsck automatic blocksize detetion

This fixes a regression that was introduced in commit dcc91e10 (it
showed up first in e2fsprogs 1.40.7).  Since we weren't freeing the
filesystem handle, ext2fs_open2() was returning EBUSY, and so this
caused a failure in the code that would automatically determine the
filesystem block size when only the superblock number was specified by
the user.

This was discussed in http://ubuntuforums.org/showthread.php?t=789323,
and Matthias Bannach pointed this out to me, for which I am very
grateful.

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