[Digikam-users] Tagging deletes image-clueless
ajg02 at elfringham.co.uk
Sun May 4 22:16:42 BST 2014
On 04/05/14 20:23, ARKPhot wrote:
> Hmm, strace shows 7610 (which is the process number?) unlinking the file
> (IMG_5858.JPG) then there's a rename to "IMG_5858.JPG7593" and another
> unlink...or whatever. Anybody able to explain what this might mean?
This is all normal and is not your problem.
1) temporary file is created earlier in the process and changes are
applied to this file.
2) original file is deleted - first unlink seen in log snippet.
3) temporary file is renamed to original filename ie the rename is from
IMG_5858.JPG7593 not to.
The 2nd unlink (of the temporary filename) fails due to the rename
having succeeded (=0) so at the end of that log snippet, IMG_5858.JPG
exists and has the changed data in it.
This is the standard way you update a file safely - copy to temp file
and make changes to it, delete old file, rename temp to original. None
of these operations should result in data loss even if the machine loses
power in the middle of an operation.
More information about the Digikam-users