Anil,

Here is a patch I used to get my DI-30 working.  The patch should be
applied to linux-2.2.15 with andre's ide patch applied.  The patch is
based on a posting to the list last week and Tim's patch on
linuxtapecert.org.  For the first time in weeks I was able to do a
backup and verify with BRU.  The backup consists of two sessions written
to the tape.

Hope it helps.

Clint


"Anil B. Somayaji" wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello everyone, again!  It looks like my problems with my new OnStream
> DI-30 drive are continuing.  Currently I can create and verify tapes
> if I create them using a single tar command; however, tapes written by
> amanda (using tar) cannot be verified.  I believe this problem comes
> from some problem with the driver tape positioning logic.
>
--- ide-tape.c  Sat Jun  3 16:51:59 2000
+++ ide-tape.c.andre    Sat Jun  3 16:51:03 2000
@@ -3834,16 +3834,8 @@
 #endif
                                clear_bit(IDETAPE_PIPELINE_ERROR, &tape->flags);
                                position = idetape_read_position(drive);
-                               if (position >= 3000 && position < 3080)
-                                       position += 32;
-                               if (position >= 2980 && position < 3000)
-                                       position = 3000;
-                               else
-                                       position += 60;
-                               if (position >= 2980 && position < 3000)
-                                       position = 3000;
-                               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);
+                               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);
                                cnt += 40;
                                continue;
                        } else

Reply via email to