[6396] in linux-scsi channel archive
Re: End of tape
daemon@ATHENA.MIT.EDU (Earl Dunlap)
Fri Apr 23 13:38:36 1999
Date: Fri, 23 Apr 1999 10:15:32 -0700
To: "Ilya Dorfman" <idorfman@procom.com>,
"linux-scsi" <linux-scsi@vger.rutgers.edu>
From: Earl Dunlap <earl@novastor.com>
In-Reply-To: <043b01be8d11$414a2050$79c710ce@ilya.procom.com>
--=====================_778222504==_.ALT
Content-Type: text/plain; charset="us-ascii"
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
>idorfman@procom.com
>
>
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
>the body of a message to majordomo@vger.rutgers.edu
--=====================_778222504==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
<br>
<font size=3>At 03:41 PM 4/22/99 , Ilya Dorfman wrote:<br>
>Hi,<br>
>I have a SCSI tape.<br>
>Is there a way to find out that I'm about to reach the end of the
tape?<br>
>When write() returns the value that is less than the buffer size
that<br>
>means that EOT is reached and nothing more could be written.<br>
>Is there any 'early notification' about EOT?<br>
<br>
The drive should raise a check condition at early warning. The
sense <br>
bytes should then show sense key = 0 and have the EOM (0x40) bit <br>
set in sense byte [2]. At that point you should still have room to
write<br>
a trailer label block, tape marks, etc. before hard end of media.<br>
<x-tab> </x-tab>Earl.<br>
<br>
><br>
>Thanks,<br>
><br>
>Ilya Dorfman<br>
>Procom Technology, Inc<br>
>(949) 794-4620<br>
>idorfman@procom.com<br>
><br>
><br>
><br>
><br>
>-<br>
>To unsubscribe from this list: send the line "unsubscribe
linux-scsi" in<br>
>the body of a message to majordomo@vger.rutgers.edu<br>
</font></html>
--=====================_778222504==_.ALT--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu