This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error reported dd'ing close of end of block device with skip

Hash: SHA1

According to Corinna Vinschen on 12/8/2005 3:30 AM:
> Hey, cool idea!  There's no definition of O_DIRECT in Cygwin so far, but
> this sounds like a worthwhile extension, at least for disk and tape
> devices, but maybe also for files.  This won't be in the next Cygwin
> version 1.5.19, probably, but I'll certainly implement that for 1.5.20.

Another cool flag is newer Linux's O_NOATIME, which inhibits updating the
access time.  In particular, coreutils CVS has already added a -noatime
option to dd (a nop unless the system supports it), and is considering
moving to using O_NOATIME on directories for ls and other traversal
routines, since POSIX allows ls to not change directory atime during
traversal, and since listing directories is effectively a read-only
operation that doesn't really need to write to disk just to update the
directory atimes.  If Windows FILE_FLAG_BACKUP_SEMANTICS can be used to
avoid touching the atime, then this flag seems useful to implement for the
1.5.20 timeframe.

While we are talking about wishes, Solaris and newer glibc provide the *at
family of functions (such as openat); the cool thing about these functions
is that they provide the ability to make directory traversal reentrant
since with fd-relative semantics you no longer need to call chdir().  See
for example

- --
Life is short - so eat dessert first!

Eric Blake   
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Thunderbird -


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]