|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ddrescue] How about a "don't care" block state? |
Date: | Mon, 30 May 2011 19:18:48 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Hello Ian, Ian Abbott wrote:
I think what I want is an option to set the minimum size of the regular output file (it wouldn't work for special files), and also a method to specify the minimum size automatically (perhaps by setting the minimum output size to -1). The automatically determined minimum size would be something like 'opos + min(isize-ipos, maxsize)', where opos is the output position, isize is the input file size, ipos is the input position, and maxsize is derived from the --max-size=<bytes> parameter if specified, otherwise LLONG_MAX.
You can easily (and sparsely) set the minimum size of the regular output file with a command like this:
ddrescue --sparse --input-position=<isize-1> --max-size=1 infile outfile logfile
About making the size calculation automatically I have still to think how should it interact with other options, for example with "--domain-logfile".
Best regards, Antonio.
[Prev in Thread] | Current Thread | [Next in Thread] |