mirror of https://github.com/vitalif/e2fsprogs
e2fsck.c (e2fsck_reset_context): Fix bug; only close the io channel if
it is *different* from the filesystem io channelbitmap-optimize
parent
36be564dc2
commit
1e16526bd9
|
@ -1,3 +1,9 @@
|
|||
2001-07-29 Theodore Tso <tytso@valinux.com>
|
||||
|
||||
* e2fsck.c (e2fsck_reset_context): Fix bug; only close the io
|
||||
channel if it is *different* from the filesystem io
|
||||
channel.
|
||||
|
||||
2001-07-27 Theodore Tso <tytso@valinux.com>
|
||||
|
||||
* problem.c (PR_1_SET_IMMUTABLE): Clarify problem message.
|
||||
|
|
|
@ -63,7 +63,7 @@ errcode_t e2fsck_reset_context(e2fsck_t ctx)
|
|||
ctx->inode_link_info = 0;
|
||||
}
|
||||
if (ctx->journal_io) {
|
||||
if (ctx->fs && ctx->fs->io == ctx->journal_io)
|
||||
if (ctx->fs && ctx->fs->io != ctx->journal_io)
|
||||
io_channel_close(ctx->journal_io);
|
||||
ctx->journal_io = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue