* read(): varblk tape records...
@ 2004-03-01 13:32 Jason Winter
2004-03-01 14:49 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Jason Winter @ 2004-03-01 13:32 UTC (permalink / raw)
To: cygwin
The NT API 'ReadFile' for reading variable block tape records indicates the
block length by returning only one full-block at a time (per read call)
which isn't being honored by CygWin's read() function.
Can CygWin be changed to detect a *tape* read() call and not continue to
fill the user-buffer after the first ReadFile call returns?
The Tape Block Length information is in MSDN, within the document Q161338 in
the knowledge base.
It *may* also be the case that setting a SCSI tape (/dev/st0) to
variable-block mode is required before each write operation under NT/2000 -
which is slightly different to the way my RetHat Linux 8.0 works, which
keeps the mode set even after a write call. Then again it could be my
setup: Adaptec 1520B SCSI Adaptor w/ 4mm DDS-2 DAT Drive.
_________________________________________________________________
You could be a genius! Find out by taking the IQ Test 2003. $5.50 (incl
GST). Click here http://sites.ninemsn.com.au/minisite/testaustralia/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: read(): varblk tape records...
2004-03-01 13:32 read(): varblk tape records Jason Winter
@ 2004-03-01 14:49 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2004-03-01 14:49 UTC (permalink / raw)
To: cygwin
On Mar 1 13:32, Jason Winter wrote:
> The NT API 'ReadFile' for reading variable block tape records indicates the
> block length by returning only one full-block at a time (per read call)
> which isn't being honored by CygWin's read() function.
???
> Can CygWin be changed to detect a *tape* read() call and not continue to
> fill the user-buffer after the first ReadFile call returns?
I don't understand what you mean, sorry.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-01 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-01 13:32 read(): varblk tape records Jason Winter
2004-03-01 14:49 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).