This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: read(): varblk tape records...(& Fix for : read())


On Mar 16 02:09, Jason Winter wrote:
> Hi Corinna,
> 
> >Are you talking about the values in mt_gstat?  See below.
> 
> This mailing list rejects emails that contain source code (which isn't 
> 'attached' in a different file) so I can't easily show you what I mean:
> 
> Function 'tape_status' in 'fhandler_tape.cc' uses 'not' mt_blkno to see if 
> it's past the beg.of.tape, but it only updates that variable when function 
> 'tape_get_pos' is called.  It isn't called when 'FeaturesLow' doesn't have 
> the TAPE_DRIVE_GET_ABSOLUTE_BLK bit set, which happens when my tape drive 
> is busy and you request function 'GetTapeParameters'.  If you cache that 
> feature bit from when the drive wasn't busy, then you know you can call 
> 'tape_get_pos' even when the tape is busy and the feature can't be read 
> (dynamically, as it is now.)

Did you check the latest from CVS?

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]