public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* st ioctl documentation error (MT_ST_SYSV)
@ 2003-04-13 14:05 Aaron Traas
  0 siblings, 0 replies; only message in thread
From: Aaron Traas @ 2003-04-13 14:05 UTC (permalink / raw)
  To: linux-scsi

Hello. I'm trying to fix some bugs in a port of my company's proprietary 
tape backup software. Our software works flawlessly on most commercial 
UNIX platforms. When handling tape reads, we use one of two different 
subroutines for handling the positioning of the read-head after a read. 
On BSD-flavored systems (such as *BSD), we do more-or-less nothing, as 
after a read, the tape is spaced forward to the next filemark. On SysV 
flavored systems (like Solaris 8), we advance the filemark manually.

We have a problem on Linux, as it states in the st(4) manpage:

MT_ST_SYSV (Default: false)
    When  this  option  is  enabled,  the  tape
    devices use the SystemV  semantics.  Other­
    wise  the  BSD semantics are used. The most
    important difference between the  semantics
    is  what  happens  when  a  device used for
    reading is closed: in  SYSV  semantics  the
    tape  is spaced forward past the next file­
    mark if this has not happened  while  using
    the device. In BSD semantics the tape posi­
    tion is not changed.

Which switches what we have defined as BSD and SYSV semantics. It states 
that Linux uses BSD semantics by default, and then says SYSV semantics 
are what we know are BSD semantics, and that BSD semantics are what we 
know as SYSV semantics. How do we know? BSD and Solaris' man pages on 
the subject contradict Linux's, and our software properly works on those 
  systems.

So, going by the description in the page on what the semantics are, we 
have defined Linux in our build system as using non-BSD style tape read 
semantics. This results in fsf errors.


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-13 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-13 14:05 st ioctl documentation error (MT_ST_SYSV) Aaron Traas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox