delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/26/11:28:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 26 Sep 2005 17:27:48 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bug in dd ?? at EOM
Message-ID: <20050926152748.GK12256@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3308 DOT 130 DOT 240 DOT 136 DOT 220 DOT 1127731371 DOT squirrel AT pinus> <SERRANOE6faZWZaendg00000253 AT SERRANO DOT CAM DOT ARTIMI DOT COM>
Mime-Version: 1.0
In-Reply-To: <SERRANOE6faZWZaendg00000253@SERRANO.CAM.ARTIMI.COM>
User-Agent: Mutt/1.4.2i

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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019