X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 9 Feb 2009 18:44:42 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: dd in cygwin vs dd in linux - number of records is always different Message-ID: <20090209174442.GJ5416@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <142096 DOT 37814 DOT qm AT web111214 DOT mail DOT gq1 DOT yahoo DOT com> <20090209171842 DOT GG5416 AT calimero DOT vinschen DOT de> <2ce9650b0902090927h695d288dsa86e11fff9b3a1c9 AT mail DOT gmail DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ce9650b0902090927h695d288dsa86e11fff9b3a1c9@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Feb 9 17:27, Chris January wrote: > On Mon, Feb 9, 2009 at 5:18 PM, Corinna Vinschen wrote: > > I guess I'll ask on one of the Microsoft newsgroups if this is a known > > effect and especially what I'm doing wrong or what I have to do to > > get the desired behaviour. > > > > Btw., if anybody has an idea what's going wrong, please speak up :} > > Maybe this excerpt from the CreateFile documentation applies? > "Note To read or write to the last few sectors of the volume, you > must call DeviceIoControl and specify FSCTL_ALLOW_EXTENDED_DASD_IO. > This signals the file system driver not to perform any I/O boundary > checks on partition read or write calls. Instead, boundary checks are > performed by the device driver." You saved my day! I never noticed that snippet in the docs. Thank you *SO* much. I'll check in a patch to Cygwin which will use that on disk devices. Thanks again, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/