[6396] in linux-scsi channel archive

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

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>
&gt;Hi,<br>
&gt;I have a SCSI tape.<br>
&gt;Is there a way to find out that I'm about to reach the end of the
tape?<br>
&gt;When write() returns the value that is less than the buffer size
that<br>
&gt;means that EOT is reached and nothing more could be written.<br>
&gt;Is there any 'early notification' about EOT?<br>
<br>
The drive should raise a check condition at early warning.&nbsp; The
sense <br>
bytes should then show sense key = 0 and have the EOM (0x40) bit <br>
set in sense byte [2].&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Earl.<br>
<br>
&gt;<br>
&gt;Thanks,<br>
&gt;<br>
&gt;Ilya Dorfman<br>
&gt;Procom Technology, Inc<br>
&gt;(949) 794-4620<br>
&gt;idorfman@procom.com<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;-<br>
&gt;To unsubscribe from this list: send the line &quot;unsubscribe
linux-scsi&quot; in<br>
&gt;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

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