Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <2099.130.240.136.220.1128001761.squirrel@pinus>
In-Reply-To: <20050926152748.GK12256@calimero.vinschen.de>
References: <3308.130.240.136.220.1127731371.squirrel@pinus>     <SERRANOE6faZWZaendg00000253@SERRANO.CAM.ARTIMI.COM>     <20050926152748.GK12256@calimero.vinschen.de>
Date: Thu, 29 Sep 2005 15:49:21 +0200 (CEST)
Subject: Re: Bug in dd ?? at EOM
From: "Bengt-Arne Fjellner" <Bengt-Arne.Fjellner@ltu.se>
To: cygwin@cygwin.com
User-Agent: SquirrelMail/1.4.5
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit


Corinna Vinschen skrev:
> On Sep 26 12:08, Dave Korn wrote:
>> ----Original Message----
>> >From: Bengt-Arne Fjellner
>> >Sent: 26 September 2005 11:43
>>
>> > When using dd with flags conv=noerror,sync
>> > It tries reading after the disc ends.
>> >
>> > This line in cygwin tries reading past end of media:
>> >  dd if=/dev/sdd of=kkkkkk bs=512 skip=156280250 conv=noerror,sync
>> > dd: reading `/dev/sdd': Input/Output error
>> > 21120+0 records in
>> > 21120+0 records out
>> > 10813440 bytes (11 MB) copied, 1.151 seconds, 9.4 MB/s
>> > dd: reading `/dev/sdd': Input/Output error
>> > 21120+1 records in
>> > 21121+0 records out
>> > repeats "forever"
>> >
>>
>> > Stops at end of disk. Whos wrong?
>>
>>   There is very definitely a problem with cygwin vs. dd, which I'm
>> investigating.  I've seen the same thing with CF memory cards, and initially
>> thought it was directly related to the memcard driver, but I was becoming
>> convinced it's a generic problem with cygwin's readv, and since you've found
>> it shows up on hard drives as well, that confirms it for me.  I'll get round
>> to it late tonight.
>
> I've applied a patch which tries to workaround the strange behaviour of
> Win32 ReadFile when reading beyond EOF.  Please give the next developers
> snapshot a try.
>
>
> Corinna
>

Works for me now with latest snapshot.
Havent test yet with a failing disk though.
Thanks.

-- 
Bengt-Arne Fjellner



--
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/

