diff options
-rw-r--r-- | misc/ChangeLog | 5 | ||||
-rw-r--r-- | misc/badblocks.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/misc/ChangeLog b/misc/ChangeLog index f5e0de77..6815171e 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-03 Theodore Ts'o <tytso@mit.edu> + + * badblocks.c (bb_output): Flush output to the badblocks + output file as bad blocks are discovered. + 2003-03-25 Theodore Ts'o <tytso@mit.edu> * chattr.1.in: Clarified the description of the 't' (no tail) diff --git a/misc/badblocks.c b/misc/badblocks.c index c6e308ee..ba3db875 100644 --- a/misc/badblocks.c +++ b/misc/badblocks.c @@ -87,7 +87,8 @@ static int bb_output (unsigned long bad) if (ext2fs_badblocks_list_test(bb_list, bad)) return 0; - fprintf (out, "%lu\n", bad); + fprintf(out, "%lu\n", bad); + fflush(out); errcode = ext2fs_badblocks_list_add (bb_list, bad); if (errcode) { |