Hello Gábor,

Gábor STEFANIK wrote:
    * The new option '--same-file' has been added. It allows infile and outfile 
to
be the same file or device. This can be used to test the writing ability of a
drive. It can also be used to copy part of a file to another location inside or
beyond the end of the same file if '--input-position' and '--output-position'
are different.

Are overlaps handled correctly (like bitblt)? That is, can I safely
use this feature to e.g. shift a 20GB partition backwards on a disk
by 2GB?

Interesting question. :-)

Overlaps are not handled at all (and there are no plans to do it. Shifting data is just a side effect of '--same-file', not the main task of ddrescue). But you can possibly shift your partition safely if you chose the right copy direction. I'll run some tests and will document the findings in the description of '--same-file' in the manual.


Thanks,
Antonio.

_______________________________________________
Bug-ddrescue mailing list
Bug-ddrescue@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to