Whamcloud - gitweb
ChangeLog, util.c:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 22 Aug 2000 21:30:11 +0000 (21:30 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 22 Aug 2000 21:30:11 +0000 (21:30 +0000)
  util.c (fatal_error): Try to flush the I/O manager before forcing an
   exit.

e2fsck/ChangeLog
e2fsck/util.c

index 86f1939..3dddcc5 100644 (file)
@@ -1,3 +1,8 @@
+2000-08-22    <tytso@valinux.com>
+
+       * util.c (fatal_error): Try to flush the I/O manager before
+               forcing an exit.
+
 2000-08-20    <tytso@valinux.com>
 
        * journal.c (e2fsck_journal_load): Fix **nasty** bug which caused
index 9fd0114..0534b11 100644 (file)
@@ -39,6 +39,8 @@ void fatal_error(e2fsck_t ctx, const char *msg)
 {
        if (msg) 
                fprintf (stderr, "e2fsck: %s\n", msg);
+       if (ctx->fs && ctx->fs->io)
+               io_channel_flush(ctx->fs->io);
        ctx->flags |= E2F_FLAG_ABORT;
        if (ctx->flags & E2F_FLAG_SETJMP_OK)
                longjmp(ctx->abort_loc, 1);