[6423] 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 (Richard Fish)
Mon Apr 26 13:13:05 1999

Date: 	Mon, 26 Apr 1999 02:59:22 -0700
From: Richard Fish <rjf@estinc.com>
To: linux-scsi@vger.rutgers.edu

Drew Eckhardt wrote:
> An early-end-of-tape warning _could_ be useful for certain
applications.

Possibly, but IMO a better behavior is when we encounter early EOM the
driver should return the actual number of bytes written (usually, the
full amount), then for future write()'s return ENOSPC.  If during a
write we encounter EOM, the driver should return the actual number of
bytes written, then for future write()'s return EIO.  AFAIK, this *is*
what the current st driver does.

Thus, the application needn't be concerned about whether we are getting
close to EOM.  You get the best possible behavior whether the drive
signals early EOM or not.

-- 
Richard Fish                      Enhanced Software Technologies, Inc.
Software Developer                4014 E Broadway Rd Suite 405
rjf@estinc.com                    Phoenix, AZ  85040 
(602) 470-1115                    http://www.estinc.com

-
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