git-annex/Annex
Joey Hess f1781d01d8
remotedaemon support for generic P2P transports
RemoteDaemon.Transport.Tor was refactored into this, and most of the
code is reused between them.

getSocketFile does not yet deal with repositories on crippled
filesystems that don't support sockets. Annex.Ssh detects that and
allows the user to set an environment variable, and something similar
could be done here.

And it does not deal with a situation where there is no path to the
socket file that is not too long. In that situation it would crash out
I suppose. Probably though, remotedaemon is ran from the top of the
repo, and in that case the path is just ".git/annex/p2p/<md5>" so nice
and short.

This seems to mostly work. But I don't yet have a working git-annex-p2p-
command to test it with.

And with my not quite working git-annex-p2p-foo test script, running
remotedaemon results in an ever-growing number of zombie processes
that it's not waiting on.
2025-07-31 14:45:32 -04:00
..
AdjustedBranch more OsPath conversion (502/749) 2025-02-05 13:29:58 -04:00
Branch newtype MapLog 2023-11-13 14:37:22 -04:00
Concurrent differentiate between concurrency enabled at command line and by git config 2020-09-16 11:47:12 -04:00
Content replace removeLink with removeFile 2025-02-11 13:41:26 -04:00
Debug implement fastDebug 2021-04-06 15:24:28 -04:00
LockPool avoid annexFileMode special case 2023-04-27 15:58:37 -04:00
MetaData sqlite datbase for importfeed 2023-10-23 16:46:22 -04:00
RepoSize more OsPath conversion 2025-02-01 11:54:19 -04:00
Sim sim: Add metadata command 2024-09-26 12:20:37 -04:00
SpecialRemote proxied exporttree=yes versionedexport=yes remotes are not untrusted 2024-08-08 15:24:19 -04:00
VectorClock bring back OsPath changes 2025-01-30 14:34:21 -04:00
View more OsPath conversion (520/749) 2025-02-05 15:07:59 -04:00
Action.hs remove dead nodes when loading the cluster log 2024-06-16 14:39:44 -04:00
AdjustedBranch.hs remove unused adjustedBranchRefresh associated file parameter 2025-02-21 14:51:02 -04:00
AutoMerge.hs more OsPath conversion (475/749) 2025-02-05 12:14:56 -04:00
Balanced.hs bring back OsPath changes 2025-01-30 14:34:21 -04:00
BloomFilter.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
Branch.hs replace removeLink with removeFile 2025-02-02 14:16:58 -04:00
BranchState.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
CatFile.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
ChangedRefs.hs bring back OsPath changes 2025-01-30 14:34:21 -04:00
CheckAttr.hs more OsPath conversion 2025-01-28 15:46:00 -04:00
CheckIgnore.hs more OsPath conversion (639/749) 2025-02-07 16:07:05 -04:00
Cluster.hs LiveUpdate for clusters 2024-08-24 10:20:12 -04:00
Common.hs plumb in LiveUpdate (WIP) 2024-08-23 16:35:12 -04:00
Concurrent.hs use ResourcePool for hash-object handles 2022-07-25 17:32:39 -04:00
Content.hs drop: Avoid redundant object directory thawing. 2025-03-26 11:25:35 -04:00
CopyFile.hs annex.fastcopy 2025-06-03 15:01:38 -04:00
CurrentBranch.hs refactor getCurrentBranch 2018-10-19 17:29:18 -04:00
Debug.hs display explanations in --debug too 2023-07-31 13:06:40 -04:00
Difference.hs implemented cloneSimRepo 2024-09-06 14:23:29 -04:00
DirHashes.hs more OsPath conversion 2025-01-27 10:13:43 -04:00
Drop.hs more OsPath conversion (650/749) 2025-02-07 17:03:31 -04:00
Environment.hs improve comments 2023-04-04 15:23:39 -04:00
Export.hs factor out Annex.GitShaKey 2025-03-03 11:09:28 -04:00
ExternalAddonProcess.hs use Annex.ExternalAddonProcess for P2P.Generic processes 2025-07-30 14:46:37 -04:00
FileMatcher.hs Add --url option and url= preferred content expression 2025-07-21 12:13:40 -04:00
Fixup.hs fix build warning 2025-07-21 12:25:17 -04:00
GitOverlay.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
GitShaKey.hs factor out Annex.GitShaKey 2025-03-03 11:09:28 -04:00
HashObject.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
Hook.hs prevent initialization with bad freeze/thaw hook configured 2025-05-27 12:54:31 -04:00
Import.hs fix windows build 2025-06-25 09:07:32 -04:00
Ingest.hs remove unused adjustedBranchRefresh associated file parameter 2025-02-21 14:51:02 -04:00
Init.hs prevent initialization with bad freeze/thaw hook configured 2025-05-27 12:54:31 -04:00
InodeSentinal.hs fix comment typo 2025-03-14 11:36:40 -04:00
Journal.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
Link.hs fix handling of linked worktrees on filesystems w/o symlinks 2025-07-14 13:20:39 -04:00
Locations.hs remotedaemon support for generic P2P transports 2025-07-31 14:45:32 -04:00
LockFile.hs more OsPath conversion 2025-01-30 15:46:32 -04:00
LockPool.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Magic.hs more OsPath conversion (602/749) 2025-02-07 14:46:11 -04:00
MetaData.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
Multicast.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
Notification.hs OsPath build fix 2025-02-17 14:46:43 -04:00
NumCopies.hs add cache for getNumMinCopiesAttr 2025-05-12 14:37:23 -04:00
Path.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Perms.hs prevent initialization with bad freeze/thaw hook configured 2025-05-27 12:54:31 -04:00
PidLock.hs fix windows build 2022-09-26 12:08:04 -04:00
Proxy.hs add connProcess to P2PConnection 2025-07-30 12:35:16 -04:00
Queue.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
RemoteTrackingBranch.hs run codespell throughout fixing typos automagically 2024-05-01 15:46:21 -04:00
ReplaceFile.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
RepoSize.hs avoid locking the journal in readonly repository 2024-08-30 11:58:10 -04:00
SafeDropProof.hs use REMOVE-BEFORE in P2P protocol 2024-07-04 13:47:38 -04:00
Sim.hs more OsPath conversion (658/749) 2025-02-08 15:27:44 -04:00
SpecialRemote.hs init: Avoid autoenabling special remotes that have control characters in their names 2023-04-12 12:37:12 -04:00
Ssh.hs Support git remotes that use a IPV6 link-local address with a zone ID 2025-04-02 15:11:54 -04:00
StallDetection.hs add directional stalldetection and bwlimit configs 2024-01-19 15:27:53 -04:00
Startup.hs Avoid loading cluster log at startup 2024-07-31 15:54:14 -04:00
TaggedPush.hs simplify base64 to only use ByteString 2023-10-26 13:10:05 -04:00
Tmp.hs replace removeLink with removeFile 2025-02-11 13:41:26 -04:00
Transfer.hs remove unused adjustedBranchRefresh associated file parameter 2025-02-21 14:51:02 -04:00
TransferrerPool.hs more OsPath conversion 2025-02-01 11:54:19 -04:00
UntrustedFilePath.hs fix mojibake reversion in display of utf8 2023-04-12 13:53:30 -04:00
UpdateInstead.hs v7 for all repositories 2019-08-30 14:09:14 -04:00
Url.hs Added remote.name.annex-web-options config 2025-04-01 10:17:38 -04:00
UUID.hs proxying GET now working 2024-06-11 15:09:43 -04:00
VariantFile.hs more OsPath conversion 2025-01-29 11:53:20 -04:00
VectorClock.hs bring back OsPath changes 2025-01-30 14:34:21 -04:00
Verify.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
Version.hs v8 repositories automatically upgrade to v9 2022-07-25 16:20:04 -04:00
View.hs more OsPath conversion (520/749) 2025-02-05 15:07:59 -04:00
Wanted.hs plumb in LiveUpdate (WIP) 2024-08-23 16:35:12 -04:00
WorkerPool.hs add Annex worker pool to P2PHttp 2024-07-10 12:19:47 -04:00
WorkTree.hs more OsPath conversion 2025-02-01 14:06:38 -04:00
YoutubeDl.hs Added remote.name.annex-web-options config 2025-04-01 10:17:38 -04:00