public inbox for cygwin-announce@cygwin.com
 help / color / mirror / Atom feed
* ddrescue 1.28-2
@ 2024-02-19  8:47 Christian Franke
  0 siblings, 0 replies; only message in thread
From: Christian Franke @ 2024-02-19  8:47 UTC (permalink / raw)
  To: cygwin-announce

The following packages have been uploaded to the Cygwin distribution:

* ddrescue-1.28-2

GNU ddrescue is a data recovery tool.  It copies data from
one file or block device (hard disc, cdrom, etc) to another, trying
hard to rescue data in case of read errors.  Ddrescue does not
truncate the output file if not asked to.  So, every time you run
it on the same output file, it tries to fill in the gaps.

https://www.gnu.org/software/ddrescue/ddrescue.html

Changes since previous Cygwin package 1.28-1:
- ddrescue no longer aborts immediately if a read fails with EACCES.

This change is Cygwin-specific. It is a workaround for the following 
interesting behavior of Windows occasionally observed when USB devices 
are read:
If a read error occurs after at least one successful read, Windows 
returns ERROR_CRC(23) which is mapped to the errno EIO by Cygwin. But 
then each additional read fails with ERROR_MEDIA_CHANGED(1110) which is 
mapped to the fallback errno EACCES. This persists until the file handle 
is closed.
If a read error occurs immediately after opening the file handle, even 
the this first read fails with ERROR_MEDIA_CHANGED.

With this workaround, such devices could be processed by ddrescue if the 
option -O (--reopen-on-error) is also specified.

The source package supports reproducible builds.

Regards,
Christian


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-19  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-19  8:47 ddrescue 1.28-2 Christian Franke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).