delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/14/11:12:23

X-Spam-Check-By: sourceware.org
Date: Wed, 14 Dec 2005 17:12:09 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Error reported dd'ing close of end of block device with skip
Message-ID: <20051214161209.GL2399@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <121420051604 DOT 1358 DOT 43A042790006E2540000054E22007507440A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <121420051604.1358.43A042790006E2540000054E22007507440A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Dec 14 16:04, Eric Blake wrote:
> > 
> > Btw., I just applied a patch which implements O_DIRECT, which will be
> > available in the next snapshot.  The same restriction as on Linux
> > applies, which is, the buffers used in read/write operations must be
> > sector-aligned.  Note that using O_DIRECT requires to rebuild the
> > application, so you'll be unable to experiment with this using the
> > current versions of dd(1).
> 
> I get the hint.  coreutils-5.93-2 will be out as soon as I can rebuild it
> against a new snapshot.

Heh, cool.  Just FYI, I tested my changes using a rebuilt version of dd
from 5.90 and it behaved fine using `iflags=direct' and `oflags=direct'.
If you notice any problems, though, kick me immediately.  Just keep the
alignment restriction in mind.  MSDN says that it's not necessarily
enforced, depending on the device, but dd should obviously take this
into account.


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