IDE Tape problem in 2.2.16 (bug?)

From: pb@dev.localweb.com
Date: Tue Aug 08 2000 - 13:58:56 EST


I'm using a Seagate IDE tape drive (I understand it's basically a Travan
tape drive) on kernel 2.2.16, and when I read from it, it doesn't read the
last 18k from my backups; everything else seems to work.

The drive worked back in kernel 2.2.5, but I understand that ide_tape.c
(if that is indeed the problem) has changed a couple of times since then.
I've tried it with the latest (8/5/00) ide patches as well.

Here's the information the kernel prints for this:

Aug 8 10:06:52 www6 kernel: ide-tape: hdb <-> ht0: Seagate STT8000A rev 5.51
Aug 8 10:06:52 www6 kernel: ide-tape: hdb <-> ht0: 600KBps, 14*26kB buffer, 5850kB pipeline, 80ms tDSC, DMA

During testing, I also get some other messages, too. I understand
they have to do with drive locking?

Aug 8 14:41:04 www6 kernel: ide-tape: ht0: I/O error, pc = 1e, key = 5, asc = 20, ascq = 0
Aug 8 14:41:36 www6 last message repeated 5 times
Aug 8 14:41:49 www6 last message repeated 4 times

I originally talked to the BRU people about this, and they told me it was
a known issue with later kernel versions, and that 2.2.7 doesn't have this bug.

This is what I do to test it:

        mt rewind
        dd if=/dev/full of=full.dat bs=2048 count=100
        mt rewind
        dd if=full.dat of=/dev/ht0 bs=2048 count=100
        mt rewind
        dd if=/dev/ht0 of=full.rest bs=2048 count=100

...and this is the output I get:

        100+0 records in
        100+0 records out
        100+0 records in
        100+0 records out
        91+0 records in
        91+0 records out

It stops reading once it gets to the last 9 blocks (18k).

Could anyone verify that this is a bug with the kernel, or try to fix it?

I tried looking at the code, but as I'm not really familiar with it, I'd
rather not cause a kernel panic on a live server. :)

Thanks in advance,

Peter Baylies
American Data Technology

P.S. I'm not subscribed to this list either; I'll try to follow this
thread as much as possible, but would appreciate it if any replies could
be directed towards <pb@dev.localweb.com> as well; thanks again.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 15 2000 - 21:00:15 EST