summaryrefslogtreecommitdiff
path: root/Logs/Transfer.hs
Commit message (Collapse)AuthorAge
...
* | change transfer lock filenames to avoid ambiguityGravatar Joey Hess2012-07-17
| | | | | | | | | | foo.lck could be a lock file for a transfer of foo, or a transfer of a key that happened to end in ".lck". Fix this by using "lck.foo" instead.
* | split transfer info and lock filesGravatar Joey Hess2012-07-07
| | | | | | | | | | | | | | Since the lock file has to be kept open, this prevented the TransferWatcher from noticing when it appeared, since inotify (and more importantly kqueue) events happen when a new file is closed. Writing a separate info file fixes that problem.
* | wait on child transfer processes, and invalidate cacheGravatar Joey Hess2012-07-06
| | | | | | | | | | | | There's still a bug; if the child updates its transfer info file, then the data from it will superscede the TransferInfo, losing the info that we should wait on this child.
* | unfinished (and unbuildable) work toward separate transfer processesGravatar Joey Hess2012-07-05
| |
* | wrote transfer threadGravatar Joey Hess2012-07-05
| | | | | | | | finally!
| * startedTime needs to be a Maybe to handle transfers that have not started yetGravatar Joey Hess2012-07-02
| | | | | | | | This changes the file format.
* | startedTime needs to be a Maybe to handle transfers that have not started yetGravatar Joey Hess2012-07-02
|/ | | | This changes the file format.
* updateGravatar Joey Hess2012-07-02
|
* fix reading of empty filename from transfer info fileGravatar Joey Hess2012-07-02
|
* cleanupGravatar Joey Hess2012-07-02
|
* record transfers for git-annex-shellGravatar Joey Hess2012-07-02
| | | | | | | | | Not yet tested and places git-annex-shell is run need to be modified to pass the new field settings. Note that rsyncServerSend was changed to fork, rather than directly exec rsync, because it needs to keep the transfer lock held, and clean up the transfer log when done.
* record transfer information on local git remotesGravatar Joey Hess2012-07-01
| | | | | | | | | | | | | | | In order to record a semi-useful filename associated with the key, this required plumbing the filename all the way through to the remotes' storeKey and retrieveKeyFile. Note that there is potential for deadlock here, narrowly avoided. Suppose the repos are A and B. A sends file foo to B, and at the same time, B gets file foo from A. So, A locks its upload transfer info file, and then locks B's download transfer info file. At the same time, B is taking the two locks in the opposite order. This is only not a deadlock because the lock code does not wait, and aborts. So one of A or B's transfers will be aborted and the other transfer will continue. Whew!
* bugfixesGravatar Joey Hess2012-07-01
| | | | | | fdToHandle seems to close the fd avoid excess trailing newline
* tested; bugfixesGravatar Joey Hess2012-07-01
|
* add transfer information filesGravatar Joey Hess2012-07-01