patch-2.4.0-test1 linux/drivers/ide/ide-tape.c

Next file: linux/drivers/ide/ide.c
Previous file: linux/drivers/ide/ide-probe.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre9/linux/drivers/ide/ide-tape.c linux/drivers/ide/ide-tape.c
@@ -3912,8 +3912,12 @@
 #endif
 				clear_bit(IDETAPE_PIPELINE_ERROR, &tape->flags);
 				position = idetape_read_position(drive);
-				printk(KERN_INFO "ide-tape: %s: blank block detected, positioning tape to block %d\n", tape->name, position + 60);
-				idetape_position_tape(drive, position + 60, 0, 1);
+				if (position >= 2980 && position < 3000)
+					position = 3000;
+				else
+					position += 60;
+				printk(KERN_INFO "ide-tape: %s: blank block detected, positioning tape to block %d\n", tape->name, position);
+				idetape_position_tape(drive, position, 0, 1);
 				cnt += 40;
 				continue;
 			} else

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)