[6398] in linux-scsi channel archive
Re: End of tape
daemon@ATHENA.MIT.EDU (Ilya Dorfman)
Fri Apr 23 13:48:18 1999
From: "Ilya Dorfman" <idorfman@procom.com>
To: "linux-scsi" <linux-scsi@vger.rutgers.edu>,
"Earl Dunlap" <earl@novastor.com>
Date: Fri, 23 Apr 1999 10:33:10 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0072_01BE8D74.AF1738D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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 <earl@novastor.com>
To: Ilya Dorfman <idorfman@procom.com>; linux-scsi =
<linux-scsi@vger.rutgers.edu>
Date: Friday, April 23, 1999 10:13 AM
Subject: Re: End of tape
=20
=20
=20
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?
=20
The drive should raise a check condition at early warning. The =
sense=20
bytes should then show sense key =3D 0 and have the EOM (0x40) bit=20
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.
=20
>
>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
------=_NextPart_000_0072_01BE8D74.AF1738D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT color=3D#000000 size=3D2>Earl,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT size=3D2>Thanks for =
quick=20
response.</FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>How do I check =
for 'check=20
condition'?</FONT></DIV>
<DIV><FONT size=3D2>My program just calls 'write' and when 'write' =
returns less=20
than</FONT></DIV>
<DIV><FONT size=3D2>buffer size I know it's hit the end. After that =
other 'writes'=20
are not possible.</FONT></DIV>
<DIV><FONT size=3D2>Thanks - Ilya</FONT></DIV></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
</B>Earl Dunlap <<A=20
=
href=3D"mailto:earl@novastor.com">earl@novastor.com</A>><BR><B>To: =
</B>Ilya=20
Dorfman <<A=20
href=3D"mailto:idorfman@procom.com">idorfman@procom.com</A>>; =
linux-scsi=20
<<A=20
=
href=3D"mailto:linux-scsi@vger.rutgers.edu">linux-scsi@vger.rutgers.edu</=
A>><BR><B>Date:=20
</B>Friday, April 23, 1999 10:13 AM<BR><B>Subject: </B>Re: End of=20
tape<BR><BR></DIV></FONT><BR><FONT size=3D3>At 03:41 PM 4/22/99 , =
Ilya Dorfman=20
wrote:<BR>>Hi,<BR>>I have a SCSI tape.<BR>>Is there a way =
to find=20
out that I'm about to reach the end of the tape?<BR>>When write() =
returns=20
the value that is less than the buffer size that<BR>>means that =
EOT is=20
reached and nothing more could be written.<BR>>Is there any =
'early=20
notification' about EOT?<BR><BR>The drive should raise a check =
condition at=20
early warning. The sense <BR>bytes should then show sense key =
=3D 0 and=20
have the EOM (0x40) bit <BR>set in sense byte [2]. At that =
point you=20
should still have room to write<BR>a trailer label block, tape =
marks, etc.=20
before hard end of=20
media.<BR><X-TAB> =20
</X-TAB>Earl.<BR><BR>><BR>>Thanks,<BR>><BR>>Ilya=20
Dorfman<BR>>Procom Technology, Inc<BR>>(949)=20
=
794-4620<BR>>idorfman@procom.com<BR>><BR>><BR>><BR>><BR>&g=
t;-<BR>>To=20
unsubscribe from this list: send the line "unsubscribe =
linux-scsi"=20
in<BR>>the body of a message to=20
majordomo@vger.rutgers.edu<BR></FONT></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0072_01BE8D74.AF1738D0--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu