(Fwd) Re: SCSI tape data loss

Daniel Eischen eischen at vigrid.com
Wed Aug 27 11:35:57 PDT 2003


On Wed, 27 Aug 2003, Nate Lawson wrote:

> On Wed, 27 Aug 2003, Dan Langille wrote:
> > On 27 Aug 2003 at 11:06, Nate Lawson wrote:
> > > Here is a response I got by forwarding this to the pthreads maintainer:
> > > > A return status of 0 from write is not interpreted as an End-Of-Tape.
> > > > The threads library isn't smart enough to know that the file
> > > > is a tape device and that a 0 status should break it out of the
> > > > loop.  Thus, it continues writing.
> > > >
> > > > Use libkse :-)
> > > >
> > > > --
> > > > Dan Eischen
> >
> > Nate: thanks for getting in touch with him.
> >
> > It is interesting to note that the code works OK on Linux and
> > Solaris.  Why is FreeBSD different in this case?
> 
> I don't know.  Our pthreads implementation is purely userland so it's
> likely that it is difficult to differentiate a non-blocking read from an
> EOF.

Correct.

-- 
Dan Eischen



More information about the freebsd-scsi mailing list