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. _______________________________________________ Bug-ddrescue mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-ddrescue
