Earl,
Thanks for quick
response.
How do I check for 'check
condition'?
My program just calls 'write' and when 'write' returns less
than
buffer size I know it's hit the end. After that other 'writes'
are not possible.
Thanks - Ilya
-----Original Message-----
From: Earl Dunlap <[EMAIL PROTECTED]>
To: Ilya Dorfman <[EMAIL PROTECTED]>; linux-scsi <[EMAIL PROTECTED]>
Date: Friday, April 23, 1999 10:13 AM
Subject: Re: End of tape
At 03:41 PM 4/22/99 , Ilya Dorfman wrote:
>Hi,
>I have a SCSI tape.
>Is there a way to find out that I'm about to reach the end of the tape?
>When write() returns the value that is less than the buffer size that
>means that EOT is reached and nothing more could be written.
>Is there any 'early notification' about EOT?
The drive should raise a check condition at early warning. The sense
bytes should then show sense key = 0 and have the EOM (0x40) bit
set in sense byte [2]. At that point you should still have room to write
a trailer label block, tape marks, etc. before hard end of media.Earl.
>
>Thanks,
>
>Ilya Dorfman
>Procom Technology, Inc
>(949) 794-4620
>[EMAIL PROTECTED]
>
>
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
>the body of a message to [EMAIL PROTECTED]
