Skip to contentSkip to conversation

patch to ide-tape once again

PATCH Pete Zaitcev 1 participant 1 message Jul 21, 2001

lore
Share & tools
lore
#0 lore raw

I am disappointed that my fix did not make it into 2.4.7, but perhaps it had something to do with the diff filenames? I tried to work through a maintainer, but apparently Gadi quit (Andre told me).

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=38404
(data corruption while reading near EOF mark).

drivers/ide/ide-tape.c +7 -2
@@ -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