Hi Joe,

Joe Kickman wrote:
Sometimes while rescuing I see the situation of hanging PC. If the
hang happens at the moment of rewriting the log/map file - it gets
size of 0
[...]
I propose to first rename the log, adding .bak at the end, flush file
buffer to disk (sync) and then write the new log file from memory to
disk, thus always having a recent backup.

Thank you for reporting this.

I'll implement some backup scheme similar to what you propose as soon as possible. Maybe it should be controlled by an option and disabled by default, given that the current method is more efficient and seems to be safe enough (no complaints in 14 years).


Best regards,
Antonio.

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

Reply via email to