[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] Feature request: preserve source timestamp
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Bug-ddrescue] Feature request: preserve source timestamp |
Date: |
Sat, 22 Oct 2016 01:00:05 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
Andrey Gursky wrote:
In order to do this in a script, an informative exit status from
ddrescue would be needed, to easy distinguish between ddrescue is just
done with its passes and ddrescue has completely restored a file.
You can use ddrescuelog for this:
'-D'
'--done-status'
Test if all the blocks in the rescue domain have been successfully
recovered. The exit status is 0 if all tested blocks are finished,
1 otherwise.
I've tried to use the safecopy's simulator [1], but ddrescue keeps to
loose the source file:
Ddrescue now provides a couple options to simulate read errors:
'-H FILE'
'--test-mode=FILE'
Builds a map of good/bad blocks using the mapfile FILE and uses it
to simulate read errors in INFILE. The blocks marked as finished
in FILE will be read normally. All other block types will be
considered read errors without even trying to read them from
INFILE. This mode is an aid in improving the algorithm of ddrescue
and is also useful to verify that ddrescue produces accurate
results in presence of read errors. Use '-' as FILE to read from
standard input.
'--pause-on-error=INTERVAL'
Time to wait after each read error or slow read. Defaults to 0.
INTERVAL is formatted as in the option '--timeout' above. If
INTERVAL begins with 's', the pause is simulated; the time
displayed is increased by INTERVAL but without performing any
pause. Pause simulation can be useful in combination with
'--test-mode' for testing purposes.
Best regards,
Antonio.