[6421] 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 (Ilya Dorfman)
Mon Apr 26 11:38:19 1999

From: "Ilya Dorfman" <idorfman@procom.com>
To: <Kai.Makisara@metla.fi>, "linux-scsi" <linux-scsi@vger.rutgers.edu>
Date: 	Mon, 26 Apr 1999 08:28:11 -0700

Kai,
Thanks for response.
I don't care about portability.
Does Linux provide any proprietary way to utilize that 'early
notification' End-Of-Tape SCSI feature?
I really, really need it. Any suggestion on what could be
modified to achieve it?

Thanks,

Ilya Dorfman
Procom Technology, Inc
(949) 794-4620
idorfman@procom.com


-----Original Message-----
From: Kai Makisara <makisara@metla.fi>
To: linux-scsi <linux-scsi@vger.rutgers.edu>
Date: Sunday, April 25, 1999 2:24 AM
Subject: Re: End of tape


>On Thu, 22 Apr 1999, 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 SCSI devices would allow early notification but the problem is the
>Unix tape semantics: there is no common way to tell that we are at
>the early-warning point. The Unix driver returns zero to indicate the end
>of tape and nothing else is available for portable programs. Solaris
>allows writes past this point in the following way: the first write after
>EOT indication writes whatever can be written, the next returns zero, the
>next writes, etc. This "feature" is not supported by other Unices and I
>would not recommend utilizing in programs.
>
> Kai



-
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