git-annex/Utility
Joey Hess 6c565ec905 external special remotes mostly implemented (untested)
This has not been tested at all. It compiles!

The only known missing things are support for encryption, and for get/set
of special remote configuration, and of key state. (The latter needs
separate work to add a new per-key log file to store that state.)

Only thing I don't much like is that initremote needs to be passed both
type=external and externaltype=foo. It would be better to have just
type=foo

Most of this is quite straightforward code, that largely wrote itself given
the types. The only tricky parts were:

* Need to lock the remote when using it to eg make a request, because
  in theory git-annex could have multiple threads that each try to use
  a remote at the same time. I don't think that git-annex ever does
  that currently, but better safe than sorry.

* Rather than starting up every external special remote program when
  git-annex starts, they are started only on demand, when first used.
  This will avoid slowdown, especially when running fast git-annex query
  commands. Once started, they keep running until git-annex stops, currently,
  which may not be ideal, but it's hard to know a better time to stop them.

* Bit of a chicken and egg problem with caching the cost of the remote,
  because setting annex-cost in the git config needs the remote to already
  be set up. Managed to finesse that.

This commit was sponsored by Lukas Anzinger.
2013-12-26 18:23:13 -04:00
..
DirWatcher assistant: Fix OSX-specific bug that caused the startup scan to try to follow symlinks to other directories, and add their contents to the annex. 2013-12-18 15:05:29 -04:00
Applicative.hs
Base64.hs allow to build when sandi is installed (don't use it yet) 2013-11-11 15:42:06 -04:00
Batch.hs avoid repeatedly searching path to make batch command when running transferkeys 2013-12-01 15:37:51 -04:00
CoProcess.hs get rid of __WINDOWS__, use mingw32_HOST_OS 2013-08-02 12:27:32 -04:00
CopyFile.hs get rid of __WINDOWS__, use mingw32_HOST_OS 2013-08-02 12:27:32 -04:00
Daemon.hs unmask async exceptions after fork 2013-10-10 16:05:44 -04:00
Data.hs clean up some ugly code 2013-09-27 19:52:36 -04:00
DataUnits.hs refactor and unify code 2013-07-19 19:39:14 -04:00
DBus.hs
Directory.hs convert hacky shell linux mklibs code to haskell ; fixing symlink bug 2013-12-24 13:13:17 -04:00
DirWatcher.hs reorg 2013-12-04 23:09:54 -04:00
DiskFree.hs warning 2013-12-10 01:35:27 -04:00
Dot.hs
Env.hs fix the day's windows permissions damage 2013-05-12 19:09:48 -04:00
Exception.hs clean up some ugly code 2013-09-27 19:52:36 -04:00
ExternalSHA.hs Use cryptohash rather than SHA for hashing. 2013-09-22 20:06:02 -04:00
FileMode.hs Revert "don't use writeFileProtected on windows" 2013-12-06 21:24:34 -04:00
FileSystemEncoding.hs Fix a few bugs involving filenames that are at or near the filesystem's maximum filename length limit. 2013-07-30 19:18:29 -04:00
Format.hs gpg secret keys list parsing 2013-09-16 12:57:39 -04:00
FreeDesktop.hs linux standalone auto-install icons 2013-07-09 20:50:41 -04:00
Gpg.hs remove *>=> and >=*> ; use <$$> instead 2013-09-27 19:58:48 -04:00
Hash.hs allow building w/o cryptohash 2013-10-03 12:33:38 -04:00
HumanNumber.hs refactor and unify code 2013-07-19 19:39:14 -04:00
HumanTime.hs parse "5" as 5 seconds 2013-10-26 12:07:00 -04:00
InodeCache.hs add, import, assistant: Better preserve the mtime of symlinks, when when adding content that gets deduplicated. 2013-09-25 16:07:11 -04:00
JSONStream.hs
libdiskfree.c
libdiskfree.h
libkqueue.c include sys/types.h 2013-04-24 10:39:52 -04:00
libkqueue.h
libmounts.c
libmounts.h Got removable media mount detection working on Android. 2013-05-04 16:19:25 -04:00
LogFile.hs avoid more build warnings on Windows 2013-08-04 14:05:36 -04:00
Lsof.hs watcher: Detect at startup time when there is a stale .git/lock, and remove it so it does not interfere with the automatic commits of changed files. 2013-10-03 16:57:21 -04:00
Matcher.hs fix handling of Not in the matcher 2013-05-25 13:50:27 -04:00
Metered.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
Misc.hs add readFileStrictAnyEncoding 2013-11-20 13:41:13 -04:00
Monad.hs remove *>=> and >=*> ; use <$$> instead 2013-09-27 19:58:48 -04:00
Mounts.hsc avoid warnings when built with ghc 7.6 2013-06-02 15:01:58 -04:00
Network.hs
NotificationBroadcaster.hs
OSX.hs
Parallel.hs
PartialPrelude.hs
Path.hs Youtube support! (And 53 other video hosts) 2013-08-22 18:50:43 -04:00
Percentage.hs cleanup 2013-07-20 20:56:04 -04:00
Process.hs port transferkeys to windows; make stopping in progress transfers work too (probably) 2013-12-10 23:19:18 -04:00
QuickCheck.hs add schedule to vicfg 2013-10-07 17:11:13 -04:00
Quvi.hs golf 2013-11-25 00:02:48 -04:00
Rsync.hs rsync special remote: Fix fallback mode for rsync remotes that use hashDirMixed. Closes: #731142 2013-12-02 12:53:39 -04:00
SafeCommand.hs fix syntax 2013-08-02 12:42:14 -04:00
Scheduled.hs fix quickcheck range 2013-11-01 11:54:26 -04:00
Shell.hs fix use of wrong shebang when android is installing git-annex-shell wrapper on server 2013-05-06 15:58:13 -04:00
SRV.hs fix build with haskell DNS 1.0.0 2013-09-17 11:54:09 -04:00
SshConfig.hs assistant: Set StrictHostKeyChecking yes when creating ssh remotes, and add it to the configuration for any ssh remotes previously created by the assistant. This avoids repeated prompts by ssh if the host key changes, instead syncing with such a remote will fail. Closes: #732602 2013-12-20 20:58:36 -04:00
Tense.hs
ThreadLock.hs
ThreadScheduler.hs avoid blocked indefinitely on mvar on windows 2013-12-04 17:25:41 -04:00
TList.hs add two long-running XMPP push threads, no more inversion of control 2013-05-22 15:13:31 -04:00
Tmp.hs oops 2013-11-20 13:44:49 -04:00
Touch.hsc
Url.hs Added support for quvi 0.9. Slightly suboptimal due to limitations in its interface compared with the old version. 2013-11-24 23:44:30 -04:00
UserInfo.hs get rid of __WINDOWS__, use mingw32_HOST_OS 2013-08-02 12:27:32 -04:00
Verifiable.hs
WebApp.hs squash warning 2013-12-09 17:24:32 -04:00
Yesod.hs switch define used, not android specific 2013-12-18 02:06:15 -04:00