ignore the error, offer to try forcing a write of the
block to the disk; sometimes this will cause the drive to
remap the bad block.
+2002-08-31 Theodore Ts'o <tytso@mit.edu>
+
+ * ehandler.c (e2fsck_handle_read_error): If the user asks to
+ ignore the error, offer to try forcing a write of the
+ block to the disk; sometimes this will cause the drive to
+ remap the bad block.
+
2002-08-31 Theodore Ts'o <tytso@valinux.com>
* pass2.c (e2fsck_pass2): If this is a HTREE directory, sort the
printf(_("Error reading block %lu (%s). "), block,
error_message(error));
preenhalt(ctx);
- if (ask(ctx, _("Ignore error"), 1))
+ if (ask(ctx, _("Ignore error"), 1)) {
+ if (ask(ctx, _("Force rewrite"), 1))
+ io_channel_write_blk(channel, block, 1, data);
return 0;
+ }
return error;
}