lkml.org 
[lkml]   [1998]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject2.1.109 SCSI tape weirdness
Date
From
I threw 2.1.109 onto a real-time data collection system we support last
week. Works great except that the behavior of SCSI tapes seems to have
changed a bit.

The system has a BusLogic BT-948 SCSI controller, and an Exabyte Eliant
drive. If you try to do things with the drive when there is *no tape*
inside, you see the following:

- The open() call succeeds just fine. Once upon a time open
would normally return EIO in this case.

- If you then do a 'write (fd, buffer, nbytes)', the return value
will be 'nbytes' and errno says 'medium not found.' The errno
value makes perfect sense, but write should really return -1. My
program wasn't looking at errno if the write appeared to succeed...

I guess my question is: is this the intended behavior? It's a definite and
incompatible change from 2.0. If nothing else, the return value from write
should be fixed.

jon

Jonathan Corbet, Eklektix, Inc.
corbet@eklektix.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.040 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site