http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=38404
(data corruption while reading near EOF mark).
--- linux-2.4.7/drivers/ide/ide-tape.c Sat Jul 21 10:44:24 2001
+++ linux-2.4.7-tr5/drivers/ide/ide-tape.c Sat Jul 21 10:45:41 2001
@@ -4099,9 +4099,14 @@
}
if (rq_ptr->errors == IDETAPE_ERROR_EOD)
return 0;
- else if (rq_ptr->errors == IDETAPE_ERROR_FILEMARK)
+ if (rq_ptr->errors == IDETAPE_ERROR_FILEMARK) {
+ idetape_switch_buffers (tape, tape->first_stage);
set_bit (IDETAPE_FILEMARK, &tape->flags);
- else {
+#if USE_IOTRACE
+ IO_trace(IO_IDETAPE_FIFO, tape->pipeline_head, tape->buffer_head, tape->tape_head, tape->minor);
+#endif
+ calculate_speeds(drive);
+ } else {
idetape_switch_buffers (tape, tape->first_stage);
if (rq_ptr->errors == IDETAPE_ERROR_GENERAL) {
#if ONSTREAM_DEBUG
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/