Commit graph

23517 commits

Author SHA1 Message Date
Joey Hess
f709a7ab00
add pointer to newer special remote 2018-03-21 15:53:34 -04:00
Joey Hess
5055db14b9
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-21 15:00:04 -04:00
misc@e661ec6eb62aa0134e4ac4ca16f98640acf5c627
c061a33477 2018-03-21 18:40:27 +00:00
Joey Hess
abffea5fcb
update 2018-03-21 09:19:06 -04:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
74f47dc437 Added a comment 2018-03-21 12:17:45 +00:00
Joey Hess
1cf705d416
idea 2018-03-21 03:19:47 -04:00
Joey Hess
0ae2662f71
ideas 2018-03-21 02:25:53 -04:00
yarikoptic
66cb09b47e initial whining about 2 ssh prompts 2018-03-19 20:50:40 +00:00
vrs+annex@ea5fa24dbb279be61a8e50adb638bf8366300717
ae462950a9 Added a comment: related bugs 2018-03-17 19:06:46 +00:00
vrs+annex@ea5fa24dbb279be61a8e50adb638bf8366300717
4ffd99c02c 2018-03-17 19:05:38 +00:00
vrs+annex@ea5fa24dbb279be61a8e50adb638bf8366300717
b196df9fce 2018-03-17 18:26:27 +00:00
vrs+annex@ea5fa24dbb279be61a8e50adb638bf8366300717
de1b840f36 2018-03-17 18:00:08 +00:00
vrs+annex@ea5fa24dbb279be61a8e50adb638bf8366300717
e7ed027ad2 2018-03-17 17:36:38 +00:00
Joey Hess
4af5507889
add news item for git-annex 6.20180316 2018-03-16 12:40:37 -04:00
Joey Hess
fd76a558ba
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-16 11:57:42 -04:00
Joey Hess
ec4323673e
response 2018-03-16 11:56:34 -04:00
gnusosa@2538fbd05a723a8f83b066e159f5d5f83b9f400d
308f3ecf66 2018-03-16 03:50:47 +00:00
Joey Hess
58b06a8f51
devblog 2018-03-15 16:17:01 -04:00
Joey Hess
d2af6baaeb
fixed processTranscript hang problem
The pipe's FDs got inherited by ssh and it did something that kept them
open even once it exited. Probably involving passing them on to the ssh
mux daemon.

Set close on exec, and all is well.

Kept Annex.Ssh not using processTranscript even though it no longer
hangs when it does use it, just because processTranscript is overkill
there.

This commit was supported by the NSF-funded DataLad project.
2018-03-15 16:14:22 -04:00
Joey Hess
ac6f58d642
fix ssh warmup hang
Fix race condition in ssh warmup that caused git-annex to get stuck and
never process some while when run with high levels of concurrency.

So far, I've isolated the problem to processTranscript, which hangs
reading output from ssh in this situation. I don't yet understand why
processTranscript behaves that way.

Since here we don't care about the ssh output, and only want to /dev/null
it, changed to not use processTranscript, avoiding its problem.

This commit was supported by the NSF-funded DataLad project.
2018-03-15 15:04:15 -04:00
yarikoptic
941593fbf1 Added a comment 2018-03-15 12:47:01 +00:00
Joey Hess
bee328a7fe
followup 2018-03-14 19:16:20 -04:00
Joey Hess
3c85abe449
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-14 19:14:25 -04:00
Joey Hess
c55d8f826d
bug 2018-03-14 19:14:05 -04:00
yarikoptic
0b3080a946 Added a comment 2018-03-14 23:09:20 +00:00
Joey Hess
10d3b7fc62
Fix reversion introduced in 6.20171214 that caused concurrent transfers to incorrectly fail with "transfer already in progress".
Avoid creating transfer info file before transfer lock is created and
locked.

The wrong order for one thing caused transfer info to be overwritten
when a transfer was already in progress.

But worse, it caused checkTransfer to see the transfer info,
and so lock the transfer lock in order to verify the transfer was not in
progress. Which in a concurrent situation, prevented the transferrer
from locking the transfer lock, so it failed with "transfer already in
progress".

Note that the transferinfo command does not lock the transfer lock
before creating the transfer info. But, that's only run after
recvkey is running, and recvkey does lock the transfer lock, so that
seems more or less ok. (Other than being a super complicated legacy mess
that the P2P code has mostly obsoleted now.)

This commit was supported by the NSF-funded DataLad project.
2018-03-14 18:55:34 -04:00
Joey Hess
da1b1fb991
analysis 2018-03-14 17:47:16 -04:00
Joey Hess
34ba547756
comment 2018-03-14 16:18:26 -04:00
Joey Hess
ac6b9bf115
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-14 16:03:59 -04:00
Joey Hess
911611e4af
reproduced 2018-03-14 16:01:49 -04:00
oliv5@5a9bb4b174f7995da105238c4e7b3f91767a87bc
78d3f10e2b 2018-03-14 00:12:26 +00:00
Diana
1da835611f 2018-03-13 21:35:02 +00:00
Diana
4a8b758b78 2018-03-13 21:33:57 +00:00
Joey Hess
050ada746f
Added backends for the BLAKE2 family of hashes.
There are a lot of different variants and sizes, I suppose we might as well
export all the common ones.

Bump dep to cryptonite to 0.16, earlier versions lacked BLAKE2 support.
Even android has 0.16 or newer.

On Debian, Blake2bp_512 is buggy, so I have omitted it for now.
http://bugs.debian.org/892855

This commit was sponsored by andrea rota.
2018-03-13 16:23:42 -04:00
Joey Hess
4d8687062f
devblog 2018-03-13 15:09:36 -04:00
Joey Hess
0ceb6da0fa
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-13 15:08:28 -04:00
Joey Hess
4015c5679a
force verification when resuming download
When resuming a download and not using a rolling checksummer like rsync,
the partial file we start with might contain garbage, in the case where a
file changed as it was being downloaded. So, disabling verification on
resumes risked a bad object being put into the annex.

Even downloads with rsync are currently affected. It didn't seem worth the
added complexity to special case those to prevent verification, especially
since git-annex is using rsync less often now.

This commit was sponsored by Brock Spratlen on Patreon.
2018-03-13 14:50:49 -04:00
Joey Hess
31e1adc005
deal with unlocked files
P2P protocol version 1 adds VALID|INVALID after DATA; INVALID means the
file was detected to change content while it was being sent and so we
may not have received the valid content of the file.

Added new MustVerify constructor for Verification, which forces
verification even when annex.verify=false etc. This is used when INVALID
and in protocol version 0.

As well as changing git-annex-shell p2psdio, this makes git-annex tor
remotes always force verification, since they don't yet use protocol
version 1. Previously, annex.verify=false could skip verification when
using tor remotes, and let bad data into the repository.

This commit was sponsored by Jack Hill on Patreon.
2018-03-13 14:27:14 -04:00
https://openid.stackexchange.com/user/3ee5cf54-f022-4a71-8666-3c2b5ee231dd
7ea75e1132 Added a comment: How expensive is verification anyway? 2018-03-13 17:58:19 +00:00
Joey Hess
9930b1f140
a plan 2018-03-13 12:17:24 -04:00
Joey Hess
85450f94d6
response 2018-03-12 18:32:58 -04:00
Joey Hess
abe8346dca
response 2018-03-12 17:49:06 -04:00
Joey Hess
ad13b56c86
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-12 17:33:37 -04:00
Joey Hess
59e7f3cbb2
done for the day 2018-03-12 17:32:57 -04:00
Joey Hess
24f35f6acc
remove todo about assistant and network change
When the assistant detects a network change, it
stops using old git-annex transferkeys processes.
So, no problem that old git-annex-shell p2pstdio
connections are cached; they won't be reused after
network change.
2018-03-12 17:24:40 -04:00
Joey Hess
b654597c2f
urk, this is hard 2018-03-12 17:24:18 -04:00
Joey Hess
c3df5d1f10
avoid double-connect to unreachable ssh remote
When git-annex-shell p2pstdio fails with 255, it's because the ssh
server is not reachable. Avoid running the fallback action in this case,
since it would just try a second time to connect, and presumably fail.

Note that the closed P2PSshConnection will not be stored in the pool,
so the next request tries again to connect. This is just the right
behavior; when the remote becomes reachable again, the same git-annex
process will start using it.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2018-03-12 16:50:21 -04:00
Joey Hess
e36ceb7448
open todo for p2p protocol flag days 2018-03-12 16:28:54 -04:00
Joey Hess
28589c92d2
no protocol 1 yet 2018-03-12 15:42:15 -04:00
andrew
cb9f8f688c Added a comment 2018-03-12 19:24:56 +00:00
davicastro
56bab023b9 Added a comment: What are the drawbacks of repo v6? 2018-03-12 19:00:36 +00:00
Joey Hess
c81768d425
version the P2P protocol
Unfortunately ReceiveMessage didn't handle unknown messages the way it
was documented to; client sending VERSION would cause the server to
return an ERROR and hang up. Fixed that, but old releases of git-annex
use the P2P protocol for tor and will still have that behavior.

So, version is not negotiated for Remote.P2P connections, only for
Remote.Git connections, which will support VERSION from their first
release. There will need to be a later flag day to change Remote.P2P;
left a commented out line that is the only thing that will need to be
changed then.

Version 1 of the P2P protocol is not implemented yet, but updated
the docs for the DATA change that will be allowed by that version.

This commit was sponsored by Jeff Goeke-Smith on Patreon.
2018-03-12 14:36:35 -04:00
anarcat
797026a263 Added a comment: beautiful 2018-03-12 13:52:53 +00:00
anarcat
d66fab83da Added a comment: late to the party 2018-03-12 13:50:33 +00:00
anarcat
821fdf8a25 Added a comment: progress bars? 2018-03-12 13:44:50 +00:00
anarcat
8688ba868c fix broken link 2018-03-12 13:41:54 +00:00
andrew
e5b05261d9 2018-03-11 18:48:43 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
7154be6018 Add new Google Drive special remote 2018-03-11 13:11:43 +00:00
andrew
d90abac2b7 Added a comment 2018-03-10 18:33:23 +00:00
andrew
c8d017c7b1 removed 2018-03-10 18:30:03 +00:00
andrew
3c74b1e40e Added a comment 2018-03-10 18:28:10 +00:00
douglass.doug@f332d3f2822cae5f75accdf82fdab4a8f565e1f9
bfa8b90f45 Added a comment: git-annex-bin package? 2018-03-09 20:59:02 +00:00
yarikoptic
d1c0c8b2fa Added a comment 2018-03-09 19:00:27 +00:00
yarikoptic
37c1daafb6 Added a comment 2018-03-09 18:55:51 +00:00
Joey Hess
5ae103e09a
devblog 2018-03-09 14:23:35 -04:00
Joey Hess
361f22dc72
awesome 2018-03-09 14:19:21 -04:00
Joey Hess
8b0f77623d
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-09 13:56:01 -04:00
Joey Hess
f74c970c7e
updates 2018-03-09 13:55:25 -04:00
Joey Hess
08814327ff
use P2P protocol for checkpresent, retrieve, and store
Note that, due to not using rsync to transfer files to ssh remotes
any longer, permissions and other file metadata of annexed files
will no longer be preserved when copying them to ssh remotes.
Other remotes never supported preserving that information, so
this is not considered a regression. Added NEWS item about this.

Another significant side effect of this is that, even when rsync is run to
retrieve a file, its progress display will no longer be shown, and
instead the native git-annex progress display will appear. It would be
possible to use the rsync process display when rsync is used (old
git-annex-shell and also retrieval from a local repository), but it
would have complicated the code unncessarily, and been inconsistent
behavior.

(I'd been thinking for a while about eliminating the rsync progress
display, since it's got some annoying verbosities, including display of
the key and the "(xfr#1, to-chk=0/1)" bit and was already somewhat
inconsistent.)

retrieveKeyFileCheap still uses rsync, since that ensures that it gets
the actual file content from the remote. Using the P2P protocol would
use the local content, as long as the local and remote size are the
same.

This commit was sponsored by John Pellman on Patreon.
2018-03-09 13:25:16 -04:00
Joey Hess
26febb4e58
benchmarks 2018-03-09 12:57:23 -04:00
yarikoptic
ad0a62d7a7 added my forgotten meta record 2018-03-09 15:31:10 +00:00
yarikoptic
028993c21a initial report about failed gets in -JX mode 2018-03-09 15:30:24 +00:00
Joey Hess
3962ca71bd
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-08 17:05:11 -04:00
Joey Hess
00fd2bc139
devblog 2018-03-08 17:04:52 -04:00
Joey Hess
6a59bc4845
use P2P protocol for drop
Not yet used for everything else, but this is enough to
verify that it works, and do some benchmarking.

Some bugfixes included, which got it working. Also fallback to old
actions has been verified to work correctly.

Benchmarked dropping one thousand files from a ssh remote on localhost.
Using the old git-annex	40.867 seconds.
With the P2P protocol	9.905 seconds!

This commit was sponsored by Jochen Bartl on Patreon.
2018-03-08 16:56:17 -04:00
hobbes@b2cacef69071743c3a831e60511062f7e014e52f
336569a995 Added a comment: Youtube-dl options per file? 2018-03-08 18:47:57 +00:00
Joey Hess
978078f0fe
fix markdown 2018-03-08 12:54:56 -04:00
davicastro
2a67c125e1 Added a comment: Adopting "git annex add" as default command in workflow 2018-03-08 11:21:55 +00:00
andrew
f7e2503410 2018-03-07 23:34:12 +00:00
andrew
34754d4ee6 Added a comment: released Finder integration 2018-03-07 23:23:47 +00:00
andrew
48555b8ee3 2018-03-07 23:19:56 +00:00
andrew
08abdbd38c 2018-03-07 23:17:54 +00:00
Joey Hess
3dd43df9c2
Better ssh connection warmup when using -J for concurrency.
Avoids ugly messages when forced ssh command is not git-annex-shell.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2018-03-07 17:30:14 -04:00
Joey Hess
460ab8a181
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-07 16:22:56 -04:00
Joey Hess
164d74de0f
wording 2018-03-07 16:22:39 -04:00
https://tribut.de/
880c303fc9 Added a comment 2018-03-07 20:15:00 +00:00
https://tribut.de/
3559e641ca Added a comment 2018-03-07 20:02:07 +00:00
Joey Hess
a1a8b78b88
response 2018-03-07 15:54:07 -04:00
Joey Hess
0a294900b5
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-07 15:41:33 -04:00
Joey Hess
85724f712a
devblog 2018-03-07 15:40:17 -04:00
Joey Hess
6ddfa9807b
implemented git-annex-shell p2pstdio
Not yet used by git-annex, but this will allow faster transfers etc than
using individual ssh connections and rsync.

Not called git-annex-shell p2p, because git-annex p2p does something
else and I don't want two subcommands with the same name between the two
for sanity reasons.

This commit was sponsored by Øyvind Andersen Holm.
2018-03-07 15:38:01 -04:00
Joey Hess
fa5b19f0ff
add formal description of the P2P protocol
This commit was sponsored by Fernando Jimenez on Patreon.
2018-03-07 15:14:16 -04:00
https://tribut.de/
79f2b0b50d 2018-03-07 16:37:31 +00:00
Joey Hess
bd8c13e75b
update 2018-03-06 17:33:11 -04:00
yarikoptic
6023d82a43 Added a comment 2018-03-06 20:33:44 +00:00
Joey Hess
6f6146a3f7
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-06 15:34:07 -04:00
Joey Hess
d8a900a33d
devblog 2018-03-06 15:26:57 -04:00
yarikoptic
635b6a0959 Added a comment 2018-03-06 19:07:37 +00:00
Joey Hess
9b8f6c9cb9
followup 2018-03-06 14:51:27 -04:00
Joey Hess
f42baedd4c
designing new git-annex-shell multi
This commit was supported by the NSF-funded DataLad project.
2018-03-06 14:48:44 -04:00
Joey Hess
dd63b4e744
followup 2018-03-06 13:51:06 -04:00
Joey Hess
4a45c34dc2
response 2018-03-06 13:40:00 -04:00
Joey Hess
bf98afb91a
comment 2018-03-06 13:38:55 -04:00
Joey Hess
a7dd4490f0
followup 2018-03-06 13:05:37 -04:00
Joey Hess
f668510754
comment 2018-03-06 12:22:50 -04:00
davi.castro@13c06889d1a1aef6321227888bd7d6b73d5692ea
ea0501e868 Added a comment: Is git annex config still supported? 2018-03-06 03:03:45 +00:00
yarikoptic
31be21289c new line was swallowed while copy pasting -- fixed 2018-03-05 19:48:29 +00:00
yarikoptic
2467f6f52b forgot to add my own meta 2018-03-05 19:47:48 +00:00
yarikoptic
24d379106b intial question about special remotes which do not support parallel mode downloads 2018-03-05 19:31:34 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
7b75103e32 Added a comment: opened github issue with glacier-cli 2018-03-05 17:28:53 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
f4095f7db8 Added a comment: thanks for the quick response! 2018-03-05 17:19:19 +00:00
Joey Hess
f71dc6aa05
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-05 11:30:59 -04:00
Joey Hess
07e253b1fb
Improve SHA*E extension extraction code
Do not treat parts of the filename that contain punctuation or other
non-alphanumeric characters as extensions. Before, such characters were
filtered out.

Note that in 45308ec78b "foo.ba__________r"
was munged to ".bar" and so incorrectly treated as an extension. That was
fixed by changing the filter order, but not allowing punctuation seems a
better fix.

This assumes that extensions containing punctuation are rare. "_" seems the
most likely character; I used it in ikiwiki "._comment" files. But I can't
recall seeing it anywhere else. It certianly seems that no commonly used
extensions contain punctuation. If git-annex doesn't treat "._comment"
as an extension, it's not likely to break software that expects to see that
extension like some software expects to see .epub or .mp3.

This commit was sponsored by Jack Hill on Patreon.
2018-03-05 11:25:01 -04:00
Joey Hess
6d6e3c6c49
comment 2018-03-05 10:59:18 -04:00
drunken_sapo
48c06f18a6 Added a comment: It is better to provide osx dmgs 2018-03-05 11:48:12 +00:00
Joey Hess
def6936be1
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-04 19:48:54 -04:00
spwhitton
2dcd46683e Added a comment: armel+armhf available in stretch-backports 2018-03-04 19:03:19 +00:00
rameshvenk
fc7596ad8f Added a comment: dyld: Symbol not found: _inflateValidate 2018-03-04 03:59:42 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
b88042e23d removed 2018-03-03 16:55:32 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
d98f1afa9c Added a comment: fixed prev commend 2018-03-03 16:55:16 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
32adc7ccd7 Added a comment: it seems to affect regular text too. 2018-03-03 16:49:10 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
9370a74059 Added a comment: this has something to do with the dot and space 2018-03-03 16:43:27 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
e124392f96 Added a comment: I've also upgraded the repo to version 6 2018-03-03 16:23:37 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
fe8284297b Added a comment: checked 6.20180112 and it's the same 2018-03-03 16:21:07 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
ca233145bc 2018-03-03 16:15:32 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
6c2a26ff2f 2018-03-03 16:14:45 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
ccc2c54d4f 2018-03-03 13:17:56 +00:00
i@f4fc1d4ed8c7cc91fc284462cb631c270a5195e9
d4fda4e3e2 2018-03-03 13:16:45 +00:00
Joey Hess
0361937ee3
response 2018-03-02 15:10:51 -04:00
Joey Hess
e757635ffd
response 2018-03-02 15:08:22 -04:00
Joey Hess
51d3edc2ab
Merge branch 'master' of ssh://git-annex.branchable.com 2018-03-02 13:05:08 -04:00
Joey Hess
0d254385d1
mention stretch backports 2018-03-01 17:22:14 -04:00
bwong@047cc3a313979f155ea3d7ea765358b92116e045
f1f2db7030 2018-03-01 01:36:57 +00:00
bwong@047cc3a313979f155ea3d7ea765358b92116e045
17782b53a1 adding public keys to hybrid encryption remote 2018-03-01 01:35:31 +00:00
Joey Hess
a4bd508643
todo 2018-02-28 16:52:13 -04:00
Joey Hess
57fa459f15
devblog 2018-02-28 14:39:07 -04:00
Joey Hess
84d19add1c
response 2018-02-28 14:04:24 -04:00
Joey Hess
bed6773346
Support exporttree=yes for rsync special remotes.
Renaming is not supported; it might be possible to use --fuzzy to get rsync
to notice the file is being renamed, but that is a bit ..fuzzy.

On the other hand, interrupted transfers of an exported file are resumed,
since rsync is great at that. Had to adjust the exporttree docs, which
said interrupted transfers would restart.

Note that remove no longer makes the empty directory dummy, instead
sending the top-level empty directory. This works just as well and I
noticed the dummy was unncessary when refactoring it into removeGeneric.
Verified that behavior of remove is not changed, and git annex
testremote does pass.

This commit was sponsored by Brock Spratlen on Patreon.
2018-02-28 13:36:20 -04:00
Joey Hess
45095fe40a
response 2018-02-28 11:58:17 -04:00
Jeff
b087bb6c79 Added a comment 2018-02-28 14:43:52 +00:00
Horus
7dbe659e25 Added a comment 2018-02-28 09:31:26 +00:00
Horus
639573a440 2018-02-28 09:27:26 +00:00
Horus
8d34dbe888 Added a comment 2018-02-28 09:09:21 +00:00
roger.herikstad@ca3b99b0263344ccfd8ec134a12261be25ef3504
7a4fe7e80c Added a comment: Not working with rsync? 2018-02-28 02:41:38 +00:00
Joey Hess
8ba2430c45
add news item for git-annex 6.20180227 2018-02-27 12:05:54 -04:00
Joey Hess
8f71b316c9
remove chrpath hack
Makefile: Remove chrpath workaround for bug in cabal,  which is no longer
needed.

https://github.com/haskell/cabal/issues/2717 says it uses RUNPATH instead
of RPATH now, but I don't even see that for statically linked libraries;
the bug with that appears to be fixed.

cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library

I left the rpath removal using otool on OSX because those straight up
broke the linker, and I don't know if the OSX autobuilder is updated to
a new enough cabal to not need it.

This commit was sponsored by Ewen McNeill on Patreon.
2018-02-27 12:02:38 -04:00
Joey Hess
b1c0e44c33
remove spam
This is how you get banned, get your IP block banned.
2018-02-27 11:27:19 -04:00
CandyAngel
32d682dd8a Added a comment 2018-02-27 10:59:02 +00:00
marjor
940f324f85 removed 2018-02-27 10:07:54 +00:00
marjor
d72281df79 Added a comment 2018-02-27 10:07:32 +00:00