git-annex/Remote
Joey Hess f161b5eb59 Fix data loss bug in directory special remote
When moving a file to the remote failed, and partially transferred content
was left behind in the directory, re-running the same move would think it
succeeded and delete the local copy.

I reproduced data loss when moving files to a partition that was almost
full. Interrupting a transfer could have similar results.

Easily fixed by using a temp file which is then moved atomically into place
once the transfer completes.

I've audited other calls to copyFileExternal, and other special remote
file transfer code; everything else seems to use temp files correctly
(rsync, git), or otherwise use atomic transfers (bup, S3).
2012-01-16 16:28:15 -04:00
..
Helper reorg 2012-01-10 15:29:10 -04:00
Bup.hs reorg 2012-01-10 15:29:10 -04:00
Directory.hs Fix data loss bug in directory special remote 2012-01-16 16:28:15 -04:00
Git.hs reorg 2012-01-10 15:29:10 -04:00
Hook.hs type alias cleanup 2011-12-31 04:11:58 -04:00
List.hs break module dependancy loop 2012-01-10 13:32:38 -04:00
Rsync.hs after is a better name for observe_ 2012-01-03 00:29:27 -04:00
S3.hs remove S3stub stuff 2012-01-05 23:14:10 -04:00
Web.hs Added remote.name.annex-web-options configuration setting, which can be used to provide parameters to whichever of wget or curl git-annex uses (depends on which is available, but most of their important options suitable for use here are the same). 2012-01-02 14:20:20 -04:00