Hello Felix,

Felix Ehlermann wrote:
if the output file is larger dd_rescue should not complain nor should it truncate the output file?).

Ddrescue does not check the output file size because any size can be valid. From an inexistent file (or one of size 0), to a block device larger than the input device being copied.

Ddrescue never truncates the output file unless the --truncate option is specified.


Of course it's less intuitive, but I think it's a more advanced thing to do so IMO it's OK to require more advanced steps to accomplish.

Merging a partial copy not produced with ddrescue (i.e., without a valid logfile), is not a trivial task. And creating a valid logfile with an editor is probably the least difficult part of doing it.


The Track-at-Once-behavior might be something to be covered in an FAQ anyway.

What do you think about my proposed solution of truncating the logfile when there are no blocks marked as done in the rest of the logfile? (Posibbly showing a warning and asking the user before continuing).


Best regards,
Antonio.

_______________________________________________
Bug-ddrescue mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to