Hi there,

Maybe you did not understand the proposed algorithm, no copies are
involved, just file renaiming. I was thinking more in the lines of
doing this:

IF A and B are the same THEN
- move B to a temporary file (predefined name or random name, as long
as the file does not exist)
- create a hardlink B to A
    IF the hard link fails THEN
               * restore the temporary file to B (rename, not copy) and complain
    ELSE
              * emove the temporary file and declare success

I still have to investigate if detecting files across different
filesystems is something easy or not, but the approach above should
work (although there are some race conditions)


Regards

Javier



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to