Date: Wed, 27 Aug 2003 11:06:55 -0700 (PDT) From: Nate Lawson <nate@root.org> To: Kern Sibbald <kern@sibbald.com> Cc: freebsd-scsi@freebsd.org Subject: Re: (Fwd) Re: SCSI tape data loss Message-ID: <20030827110534.J31798@root.org> In-Reply-To: <1061995529.1258.273.camel@rufus> References: <3F4C6F55.17392.1EC66A86@localhost> <1061995529.1258.273.camel@rufus>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Aug 2003, Kern Sibbald wrote: > Many thanks for testing this ... > > It seems to me that your tests, clearly indicate that > there is a problem even though you had no data loss. > > When you ran without -pthread, the status > received by the program was a 0 with 141776 > blocks written. This is correct. > > When you ran with -pthread, the status > received by the program was a -1 with 142879 > blocks written. This is "not correct". > > To me, that shows very clearly that with -pthread > the 0 status was lost and more blocks were written. > In fact, in this case so many blocks were written > that the tape was not properly terminated with > an EOF (actually two EOF marks). 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030827110534.J31798>