I am using an AIWA TD-8001 drive (well, the "naked" OEM equivalent;
can't recall the model number) with a 2.0.36 Linux kernel. It uses TR4
tapes.
It seems to be working perfectly, except when I put, say 3 files on the
tape, then try to overwrite the second one (giving two files on the
tape) using an 'mt -f /dev/nst0 fsf 1' before I write the file to tape,
then writing my file with afio. I would have *thought* that this would
work: it would write the file just after the first file mark, and append
two file marks at the end.
Is this sort of thing just unsupported by the Linux SCSI tape driver?
In other words, are you limited to overwriting the beginning of the tape
or appending to the end of the tape, but never positioning and
overwriting in between?
These are the errors I get (I'm not sure what I'm doing differently to
get the different errors at different times, but it is with different
files):
----
Jun 18 13:43:05 debserver kernel: st0: Error with sense data: Current
error st09
:00: sns = f0 5
Jun 18 13:43:05 debserver kernel: ASC=90 ASCQ= 1
Jun 18 13:43:05 debserver kernel: Raw sense data:0xf0 0x00 0x05 0x00
0x00 0x00 0
x3c 0x11 0x00 0x00 0x00 0x00 0x90 0x01 0x00 0x00
Jun 18 13:43:05 debserver kernel: st0: Error with sense data: Current
error st09
:00: sns = f0 5
Jun 18 13:43:05 debserver kernel: ASC=90 ASCQ= 1
Jun 18 13:43:05 debserver kernel: Raw sense data:0xf0 0x00 0x05 0x00
0x00 0x00 0
x01 0x11 0x00 0x00 0x00 0x00 0x90 0x01 0x00 0x00
Jun 18 13:43:05 debserver kernel: st0: Error on write filemark.
----
and
----
Jun 18 14:27:32 debserver kernel: st0: Error with sense data: Current
error st09
:00: sns = f0 5
Jun 18 14:27:32 debserver kernel: ASC=90 ASCQ= 1
Jun 18 14:27:32 debserver kernel: Raw sense data:0xf0 0x00 0x05 0x00
0x00 0x00 0
x0a 0x11 0x00 0x00 0x00 0x00 0x90 0x01 0x00 0x00
Jun 18 14:27:32 debserver kernel: st0: Error on flush.
----
By the way, when I get that second error, afio thinks the operation
completed OK, but nothing is written!