[6645] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: SCSI Tapes and Error Handling

daemon@ATHENA.MIT.EDU (Ilya Dorfman)
Wed Jun 9 11:24:48 1999

From: "Ilya Dorfman" <idorfman@procom.com>
To: <linux-scsi@vger.rutgers.edu>, "Marc SCHAEFER" <schaefer@alphanet.ch>
Date: 	Wed, 9 Jun 1999 08:23:10 -0700



>Ilya Dorfman <idorfman@procom.com> wrote:
>> How can a Linux application handle error conditions on SCSI tape?
>> What can be done when read() returns -1 because of tape corruption?


From: Marc SCHAEFER <schaefer@alphanet.ch>
read errno (or perror("can't read()");)



Thanks, Marc.

Yes,I understand that errno will give me the reason read() failed.
My question is if I can continue reading the tape after read() has failed.
If I use something like 'tar' format, with 512 byte logical block and, say, 
8K physical block, will I lose just some number of physical blocks,
or will my data become completely unaligned? How will the fact that the
tape drive compresses the data affect further reading?



-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post