bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ddrescue] Re: feature request: write in the logfile, if it can't be


From: Antonio Diaz Diaz
Subject: [Bug-ddrescue] Re: feature request: write in the logfile, if it can't be deleted
Date: Sun, 23 Jan 2005 20:47:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20040913

Hello Ariel.

The Right Thing (TM) to do in this case is to make a copy of the logfile before resuming the rescue as a different user.

But I like the idea of leaving things as consistent as possible. I'll probably implement it.

Regards,
Antonio.


Ariel wrote:
If the logfile can't be deleted, please at least indicate in the logfile
that the recovery was complete. (One line 0x0 0x0 0 I guess.)

Or for simplicity, always write the logfile, even if the recovery is
complete, and then make the attempt to delete it. (That way you don't need
two different blocks of code that write data to the logfile.)

This just happened to me; the logfile was created by one user, but I
continued the recovery using a different user (and chmod'd the files so
that the other user could write to it) but he couldn't delete it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]