Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [203.61.170.125] X-Originating-Email: [jasonwinter AT hotmail DOT com] X-Sender: jasonwinter AT hotmail DOT com From: "Jason Winter" To: cygwin AT cygwin DOT com Subject: Re: read(): varblk tape records...(& Fix for : read()) Date: Fri, 05 Mar 2004 14:27:35 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 05 Mar 2004 14:27:36.0260 (UTC) FILETIME=[0154E840:01C402BE] Hi Corinna, >Unfortunately I can't run your testcase. My DDS tape drive seems to be >broken. It can read, but it behaves weird when trying to write :-((( Doesn't it worry you, that we both have write problems? When I stick to reading, everything works just fine also. Do you want my Native NT version - it works perfectly? Here are some other things I've noticed: 1/ close() writes a file-mark in some cases... Don't, I can do this myself, thank's anyway! 2/ read() should check for Win32 error 1101 - filemark and return 0 bytes, no error. 3/ tape_status dynamically checks 'tape_drive_get_absolute_blk', before calling tape_get_pos () : but my tape drive says '0' when it's busy, preventing the current block from being updated *sometimes*. Force-reading it works just fine, if you want to cache the flag somewhere when the device is opened? 4/ sending a tape-rewind command doesn't reset any internal flags, does it need to? Jason. _________________________________________________________________ Protect your inbox from harmful viruses with new ninemsn Premium. Go to http://ninemsn.com.au/premium/landing.asp?banner=emailtag&referrer=hotmail -- 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/