Commit graph

25992 commits

Author SHA1 Message Date
Joey Hess
46ba8a46d7
response 2015-10-12 13:16:00 -04:00
Joey Hess
c84a5d39b1
response 2015-10-12 13:13:27 -04:00
Joey Hess
6278471aff
response 2015-10-12 13:08:34 -04:00
Joey Hess
d9d73c9602
close 2015-10-12 13:06:58 -04:00
Joey Hess
5072c62932
avoid ugly error about MVar if the sqlite worker thread crashes 2015-10-12 13:00:22 -04:00
efraim@78c5af2ab57cf0d7aa23bae3dd0adb700c98217c
b44f1519f3 2015-10-11 20:05:14 +00:00
tribut
53d3b5a197 2015-10-11 17:33:20 +00:00
Joey Hess
fa9333e99f
use action, not sideAction
sideAction is for things not generally related to the current action being
performed. And, it adds a newline after the side action. This was not the
right thing to use for stuff like "checksum", where doing a checksum is
part of the git annex get process, and indeed we want it to display
"(checksum...) ok"
2015-10-11 13:29:44 -04:00
ovidiu@66ace8a8d99ce938b0538ffa0f26d30db02a9626
80ea196c6d Added a comment 2015-10-11 16:51:07 +00:00
dah
7939a51b73 Added a comment 2015-10-10 19:02:56 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw
96ee4b7ebe Added a comment 2015-10-10 18:53:58 +00:00
ovidiu@66ace8a8d99ce938b0538ffa0f26d30db02a9626
6b60f22949 Added a comment 2015-10-10 10:16:15 +00:00
Joey Hess
bddff249ae
fix close tag 2015-10-09 18:12:00 -04:00
Joey Hess
74928a738b
Merge branch 'master' of ssh://git-annex.branchable.com 2015-10-09 18:05:10 -04:00
Joey Hess
22691478cf
Merge branch 'dropproof' 2015-10-09 18:03:00 -04:00
Joey Hess
6719d17136
massive devblog 2015-10-09 18:02:35 -04:00
Joey Hess
2154b7a38f
add inAnnex check to local lockKey 2015-10-09 18:00:37 -04:00
Joey Hess
181d4fd459
close bug 2015-10-09 17:32:12 -04:00
Joey Hess
6145f905e0
improve display when lockcontent fails
/dev/null stderr; ssh is still able to display a password prompt
despite this

Show some messages so the user knows it's locking a remote, and
knows if that locking failed.
2015-10-09 17:31:02 -04:00
Joey Hess
3b89d5a20c
implement lockContent for ssh remotes 2015-10-09 16:55:41 -04:00
Joey Hess
6d4f741d5f
cleanup changelog 2015-10-09 16:18:16 -04:00
Joey Hess
e392ec112f
also generate a drop safety proof for move --from remote 2015-10-09 16:16:03 -04:00
Joey Hess
b944da832b
tests and verified that the bug is fixed, in all the cases I identified 2015-10-09 15:59:42 -04:00
Joey Hess
6a72045707
fix local dropping to not require extra locking of copies, but only that the local copy be locked for removal 2015-10-09 15:48:02 -04:00
Joey Hess
1043880432
improve message when drop failed due to no locked copy 2015-10-09 15:14:25 -04:00
Joey Hess
b021321aae
rename constructor 2015-10-09 15:01:33 -04:00
Joey Hess
45e1a7c361
verify local copy of content with locking 2015-10-09 14:57:32 -04:00
wsha.code+ga@b38779424f41c5701bbe5937340be43ff1474b2d
a8106c69c3 2015-10-09 18:45:13 +00:00
Joey Hess
a5e74e9e64
display drop safety proofs in debug mode 2015-10-09 13:47:19 -04:00
wsha.code+ga@b38779424f41c5701bbe5937340be43ff1474b2d
923c5cdbf2 Added a comment: post-receive hook 2015-10-09 17:41:51 +00:00
Joey Hess
865dd11dbf
fix lockKey to run callback in original Annex monad, not local remote's 2015-10-09 13:35:28 -04:00
Joey Hess
4c6095b6f5
content locking during drop working for local git remotes
Only ssh remotes lack locking now
2015-10-09 13:12:58 -04:00
Joey Hess
ceb5819538
finish and use lockContent interface 2015-10-09 12:36:04 -04:00
Joey Hess
cf79dffa4c
improve drop proof code 2015-10-09 11:09:46 -04:00
Joey Hess
f57ac29be1
refactor 2015-10-09 10:30:22 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw
405deb3d2f removed 2015-10-09 08:47:42 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw
d67e11cca4 Added a comment 2015-10-09 08:45:45 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw
12058979ee Added a comment 2015-10-09 08:45:25 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnmF_9CAtfqdZkC4e-_dCX-rK5bqh4RWkw
def02b59e9 2015-10-09 08:35:31 +00:00
darkfeline
103a72745d Added a comment 2015-10-09 02:25:57 +00:00
darkfeline
7591861ffb 2015-10-09 02:19:40 +00:00
darkfeline
c3df43e92c Added a comment: Sharing S3 bucket between repos 2015-10-09 01:16:25 +00:00
Joey Hess
7f5958eec2
TrustedCopy is good enough to allow dropping
By definition, a trusted repository is trusted to always have its location
tracking log accurate. Thus, it should never be in a position where content
is being dropped from it concurrently, as that would result in the location
tracking log not being accurate.
2015-10-08 18:34:48 -04:00
Joey Hess
e4a33967a1
try harder to verify until at least one VerifiedCopyLock is obtained
This avoids a failure where eg, we start with RecentlyVerifiedCopies
for all remotes, and so didn't do any active verification, which is
required.

Also, dedup the list of VerifiedCopies when checking if we have enough,
in case 2 copies of a UUID slip in.
2015-10-08 18:20:36 -04:00
Joey Hess
b17f5da6c9
require 1 locked copy while dropping from local or a remote
See doc/bugs/concurrent_drop--from_presence_checking_failures.mdwn for
discussion about why 1 locked copy is all we can require, and how this
fixes concurrent dropping bugs.

Note that, since nothing yet generates a VerifiedCopyLock yet, this commit
breaks dropping temporarily.
2015-10-08 18:11:39 -04:00
Joey Hess
c75c79864d
support invalidating existing VerifiedCopys 2015-10-08 17:58:32 -04:00
Joey Hess
90f7c4b6a2
add VerifiedCopy data type
There should be no behavior changes in this commit, it just adds a more
expressive data type and adjusts code that had been passing around a [UUID]
or sometimes a Maybe Remote to instead use [VerifiedCopy].

Although, since some functions were taking two different [UUID] lists,
there's some potential for me to have gotten it horribly wrong.
2015-10-08 16:55:11 -04:00
Joey Hess
b1abe59193
add removeKey action to Remote
Not implemented for any remotes yet; probably the git remote is the only
one that will ever implement it.
2015-10-08 15:01:38 -04:00
Joey Hess
beedf1da25
unused import 2015-10-08 14:59:34 -04:00
Joey Hess
9cb9dab69b
I think this comment is stale/confusing; remove 2015-10-08 14:51:44 -04:00