|
From: | Antonio Diaz Diaz |
Subject: | Re: [Bug-ddrescue] ddrescue bug with overwriting the mapfile |
Date: | Tue, 08 Jan 2019 17:44:39 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |