Commit graph

35684 commits

Author SHA1 Message Date
nrg@bd619d1ebf16e6324c546adea8be8fe1cc2b4325
10c9ba3430 Added a comment: Issue is with persistent > 2.9.2 2019-10-17 13:30:28 +00:00
irieger
d533e59e73 Adding the question 2019-10-17 09:07:26 +00:00
basile.pinsard@f1a7fae9f3bd9d5282fca11f62ad53b45a8eb317
d4fff00142 Added a comment 2019-10-16 20:40:21 +00:00
Joey Hess
bf7a22b812
analysis 2019-10-16 10:30:40 -04:00
fasthans@87884c78197fe1a25ac25ae7fa1d930c147e9592
5a30c1b330 Added a comment: how does git annex think about remote locations? 2019-10-16 04:34:14 +00:00
cds@be5df0987fc4e414401b86f980a60f7bf0288037
70702c63a8 Making a todo as requested on IRC. 2019-10-16 02:34:53 +00:00
leej
73f2750aac Added a comment: version error also reproduces on 7.20190912 from kitenet.net (downloaded 8/20/2019) 2019-10-15 23:31:40 +00:00
leej
e9fb1aa203 2019-10-15 22:38:47 +00:00
Ilya_Shlyakhter
0098b17cbe Added a comment: can git-annex-pre-commit annex files? 2019-10-15 19:15:41 +00:00
spwhitton
4745d55886 Added a comment 2019-10-15 18:03:34 +00:00
Joey Hess
bfec5a2a41
Merge branch 'master' of ssh://git-annex.branchable.com 2019-10-15 11:46:22 -04:00
Joey Hess
ce48eb797c
make DropDead transition minimize remote.log for dead sameas remotes
All that needs to be retained in remote.log is the sameas-uuid.
The rest of the config is eliminated. This doesn't save enough space to
bother with, but it prevents anything sensitive in the config of the
dead sameas remote from lingering around.

Note that minimizesameasdead does not update the VectorClock when
changing the log line. That's normally a no-no, but in this case,
it makes each DropDead result in the exact same file contents,
and vector clocks are not needed because the transition breaks
the history chain.
2019-10-15 11:39:25 -04:00
fasthans@87884c78197fe1a25ac25ae7fa1d930c147e9592
3ee526a3a6 2019-10-15 13:28:14 +00:00
fasthans@87884c78197fe1a25ac25ae7fa1d930c147e9592
1a6fb49565 2019-10-15 13:27:35 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
3ac7fa3524 Added a comment: One other thing to add 2019-10-15 10:44:14 +00:00
jason.dixon.email@aa0e536a2ec2877d6f666108dbbc6e39bbe87ac0
17f54fc008 2019-10-15 10:37:39 +00:00
Joey Hess
78f522e7c8
forgot to add this new file 2019-10-14 16:09:04 -04:00
Joey Hess
83f5ec0d36
Merge branch 'master' of ssh://git-annex.branchable.com 2019-10-14 16:08:08 -04:00
Joey Hess
8ef5e79f79
sameas done and merged 2019-10-14 16:07:49 -04:00
Joey Hess
123d0d9add
Merge branch 'sameas' 2019-10-14 16:07:19 -04:00
Joey Hess
4306dfbe68
remove empty log files in transition
forget --drop-dead: Remove several classes of git-annex log files when they
become empty, further reducing the size of the git-annex branch.

Noticed while testing sameas uuid removal, but it could happen other times
too.

An empty log file is always treated by git-annex the same as no file
being present, and when the files are per-key, it can be a sizable space
saving to exclude them from the tree.
2019-10-14 16:04:15 -04:00
Joey Hess
5e9a2cc37f
forget state of sameas remotes during DropDead transitions
It would have been a lot less round-about to just make git annex dead
also add the uuids of sameas remotes to the trust.log as dead.

But, that would fail in the case where there's an unmerged other clone
that has a sameas remote that the current repo does not know about.
Then it would not get marked as dead.

Handling it at transition time avoids that scenario.

Note that the generation of trustmap' in dropDead should only
happen once, due to the partial application.
2019-10-14 15:47:42 -04:00
nrg@bd619d1ebf16e6324c546adea8be8fe1cc2b4325
a3fdc23828 2019-10-14 19:14:02 +00:00
strmd
d671481ed7 Added a comment: A new user chiming in 2019-10-14 18:23:59 +00:00
Joey Hess
9828f45d85
add RemoteStateHandle
This solves the problem of sameas remotes trampling over per-remote
state. Used for:

* per-remote state, of course
* per-remote metadata, also of course
* per-remote content identifiers, because two remote implementations
  could in theory generate the same content identifier for two different
  peices of content

While chunk logs are per-remote data, they don't use this, because the
number and size of chunks stored is a common property across sameas
remotes.

External special remote had a complication, where it was theoretically
possible for a remote to send SETSTATE or GETSTATE during INITREMOTE or
EXPORTSUPPORTED. Since the uuid of the remote is typically generate in
Remote.setup, it would only be possible to pass a Maybe
RemoteStateHandle into it, and it would otherwise have to construct its
own. Rather than go that route, I decided to send an ERROR in this case.
It seems unlikely that any existing external special remote will be
affected. They would have to make up a git-annex key, and set state for
some reason during INITREMOTE. I can imagine such a hack, but it doesn't
seem worth complicating the code in such an ugly way to support it.

Unfortunately, both TestRemote and Annex.Import needed the Remote
to have a new field added that holds its RemoteStateHandle.
2019-10-14 13:51:42 -04:00
yarikoptic
25e78d5f22 initial complaint that cannot use --duplicate and --reinject-duplicates 2019-10-14 14:56:19 +00:00
https://tribut.de/
5f36424eaa Added a comment 2019-10-14 09:33:34 +00:00
TroisSinges
6dd6f3ccf2 2019-10-14 09:25:18 +00:00
Ilya_Shlyakhter
52b0a6530d Added a comment: getting v5 semantics 2019-10-14 03:42:05 +00:00
amindfv@6f75355c5dad3450ed73d1f01715be90dfdd6cd6
7a950e3088 Added a comment 2019-10-14 00:20:25 +00:00
TroisSinges
bc4a194c6d Added a comment 2019-10-13 23:59:23 +00:00
TroisSinges
302e43f852 2019-10-13 23:55:20 +00:00
Lukey
3b86bfdb79 Added a comment: v5 mode 2019-10-12 21:48:57 +00:00
Ilya_Shlyakhter
8348e7534d Added a comment: experience with v7 semantics 2019-10-12 21:39:03 +00:00
amindfv@6f75355c5dad3450ed73d1f01715be90dfdd6cd6
c85165ece5 Added a comment 2019-10-12 21:12:52 +00:00
Joey Hess
ddcc57bd9a
Merge branch 'master' of ssh://git-annex.branchable.com 2019-10-11 16:09:06 -04:00
Joey Hess
3fad5e8c7c
devblog 2019-10-11 16:08:55 -04:00
Joey Hess
37f0abbca8
looked over all my old comments, current status of all concerns 2019-10-11 16:06:42 -04:00
Joey Hess
37f725a9f7
Merge branch 'master' into sameas 2019-10-11 15:56:00 -04:00
Joey Hess
debafcba2b
autoenable sameas remotes 2019-10-11 15:52:40 -04:00
Joey Hess
ec778888d2
got enableremote working for sameas
Also the assistant can enable sameas remotes, should work, but not
tested.
2019-10-11 15:11:08 -04:00
Joey Hess
35d7ffe128
initremote --sameas fully working
And using sameas remotes is working.

Moved annex-config-uuid setting out of Remote.Helper.Special.
EnableRemote will also have to set it.
2019-10-11 14:19:10 -04:00
Joey Hess
c0e88b7695
sameas documentation 2019-10-11 14:04:58 -04:00
Joey Hess
1b9c1d1737
fix sameas inherited key removal 2019-10-11 13:18:27 -04:00
Joey Hess
8d7dc76dff
fix bad paste of field name 2019-10-11 13:05:25 -04:00
Joey Hess
91eed85fd4
add sameas inherited configs to newConfig
This makes initremote --sameas work with encryption inherited.
2019-10-11 13:05:20 -04:00
Ilya_Shlyakhter
8432c3912f Added a comment: preventing inadvertently adding annexed files in unlocked form 2019-10-11 16:38:07 +00:00
Joey Hess
2bd6e81bb0
support annex-config-uuid when generating remote
This is used by a special remote with sameas-uuid=
The remote's uuid is the sameas-uuid, but it needs to get
its RemoteConfig from the annex-config-uuid.
2019-10-11 12:34:11 -04:00
Ilya_Shlyakhter
599d438fa6 Added a comment 2019-10-11 16:23:08 +00:00
Joey Hess
cb08cb0052
Merge branch 'master' of ssh://git-annex.branchable.com 2019-10-10 16:18:46 -04:00