Commit graph

16806 commits

Author SHA1 Message Date
Joey Hess
3e68c1c2fd add remote state logs
This allows a remote to store a piece of arbitrary state associated with a
key. This is needed to support Tahoe, where the file-cap is calculated from
the data stored in it, and used to retrieve a key later. Glacier also would
be much improved by using this.

GETSTATE and SETSTATE are added to the external special remote protocol.

Note that the state is left as-is even when a key is removed from a remote.
It's up to the remote to decide when it wants to clear the state.

The remote state log, $KEY.log.rmt, is a UUID-based log. However,
rather than using the old UUID-based log format, I created a new variant
of that format. The new varient is more space efficient (since it lacks the
"timestamp=" hack, and easier to parse (and the parser doesn't mess with
whitespace in the value), and avoids compatability cruft in the old one.

This seemed worth cleaning up for these new files, since there could be a
lot of them, while before UUID-based logs were only used for a few log
files at the top of the git-annex branch. The transition code has also
been updated to handle these new UUID-based logs.

This commit was sponsored by Daniel Hofer.
2014-01-03 16:35:57 -04:00
Joey Hess
3560fb411d wanted, schedule: Avoid printing "ok" after requested value. 2014-01-03 14:51:32 -04:00
https://www.google.com/accounts/o8/id?id=AItOawl_EUsflI4UOGtx0-2yrRJuGAzNyN_5UYY
68e311cee2 Added a comment 2014-01-03 16:34:10 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnX1msQxnLoSeu7q-i-c9BWghonsN7Qmns
bcc3987285 Added a comment: Still crashing 2014-01-03 14:28:21 +00:00
https://www.rfc1149.net/
88b023f691 2014-01-03 10:02:10 +00:00
https://www.google.com/accounts/o8/id?id=AItOawnBJ6Dv1glxzzi4qIzGFNa6F-mfHIvv9Ck
31a757a28d 2014-01-03 01:51:20 +00:00
Joey Hess
9f1fd35536 Merge branch 'master' of ssh://git-annex.branchable.com 2014-01-02 20:29:54 -04:00
Joey Hess
f67c382e94 mini-devblog 2014-01-02 20:27:31 -04:00
https://www.google.com/accounts/o8/id?id=AItOawmH-n1yD04qmSeXKKzYaXFTN1ciFWVb5As
a1dd7d46e1 Added a comment: Can't seem to get the configuration I am looking for from the webapp 2014-01-02 23:41:44 +00:00
https://id.koumbit.net/anarcat
30ffa773d1 Added a comment 2014-01-02 23:30:40 +00:00
https://www.google.com/accounts/o8/id?id=AItOawlKguAW2rkgcUqK2mmxlYnh4Jj578A4AIA
9f80431d33 2014-01-02 22:33:04 +00:00
https://www.google.com/accounts/o8/id?id=AItOawlKguAW2rkgcUqK2mmxlYnh4Jj578A4AIA
87fc579c2d 2014-01-02 22:30:48 +00:00
Antoine Beaupré
bed494ee89 fix format 2014-01-02 17:27:01 -05:00
https://id.koumbit.net/anarcat
d3c8145d6c Added a comment 2014-01-02 22:21:34 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmWBvsZvSsAL8P2ye3F0OBStjFCVnOImzM
0877c4287c Added a comment: Why fsck? 2014-01-02 22:09:05 +00:00
http://joeyh.name/
a08c34a9b9 Added a comment 2014-01-02 19:04:27 +00:00
Joey Hess
d93f946abe add section linking to specific NAS howtos 2014-01-02 13:35:40 -04:00
Joey Hess
b73b1e45d2 add newlines between dummy numbered items 2014-01-02 13:29:32 -04:00
Joey Hess
88eacbb92a Revert "fix markdown" (markdown is crap)
This reverts commit 84a01721e7.
2014-01-02 13:29:04 -04:00
Joey Hess
84a01721e7 fix markdown 2014-01-02 13:28:10 -04:00
Joey Hess
26f098f2ed fix link 2014-01-02 13:27:20 -04:00
Joey Hess
07c5c4d8f3 Merge branch 'master' of ssh://git-annex.branchable.com 2014-01-02 13:27:08 -04:00
http://joeyh.name/
6594c85550 Added a comment 2014-01-02 17:26:35 +00:00
http://joeyh.name/
e0624c933e Added a comment 2014-01-02 17:25:50 +00:00
Joey Hess
2e963f7ba0 close 2014-01-02 13:23:58 -04:00
Greg Grossmeier
05514bc5d9 redo numbering the lazy way until and unless there's a better way in mdwn 2014-01-02 09:20:04 -08:00
Joey Hess
f7727d2df1 Remotes can now be made read-only, by setting remote.<name>.annex-readonly 2014-01-02 13:12:32 -04:00
Joey Hess
7d5568485f Merge branch 'master' of ssh://git-annex.branchable.com 2014-01-02 12:04:17 -04:00
Richard Hartmann
952f60ed65 Add doc/todo/wishlist:_git_annex_info_UUID/comment_2._comment 2014-01-02 09:33:03 +01:00
https://www.google.com/accounts/o8/id?id=AItOawnX1msQxnLoSeu7q-i-c9BWghonsN7Qmns
8c3d8f158e Added a comment: Thanks 2014-01-02 07:02:17 +00:00
Greg Grossmeier
4cd6788866 Added tip on installing on a Synology NAS 2014-01-01 22:41:07 -08:00
http://joeyh.name/
6ab23cd8e7 Added a comment 2014-01-02 02:16:10 +00:00
Joey Hess
f83e5c75dc Assistant: Remove stale MERGE_HEAD files in lockfile cleanup.
See http://git-annex.branchable.com/forum/How_to_resolve_a_interrupted_merge_in_direct_mode__63__/
2014-01-01 22:05:33 -04:00
http://joeyh.name/
9cd8282047 Added a comment 2014-01-02 02:05:06 +00:00
Joey Hess
858eb26303 Avoid looping if long-running git cat-file or git hash-object crashes and keeps crashing when restarted. 2014-01-01 21:42:25 -04:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
e3344c1c71 Added a comment 2014-01-02 01:32:38 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
c65b7eda85 Added a comment 2014-01-02 01:31:05 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
c37ac517ac Added a comment 2014-01-02 01:15:40 +00:00
Richard Hartmann
bf8dbdebfb Merge branch 'master' of git://git-annex.branchable.com 2014-01-02 02:11:48 +01:00
Richard Hartmann
00c1be812e Add doc/todo/wishlist:_git_annex_info_UUID.mdwn 2014-01-02 02:11:23 +01:00
http://joeyh.name/
4189d4ca5f Added a comment 2014-01-02 01:11:15 +00:00
Richard Hartmann
23fff40959 Merge branch 'master' of git://git-annex.branchable.com 2014-01-02 02:02:53 +01:00
Richard Hartmann
7fc11913f2 Add endless_loop_when_PWD_gone.mdwn 2014-01-02 02:02:38 +01:00
https://www.google.com/accounts/o8/id?id=AItOawkYmMFDdf3GJ9Oba6NCVkzGc4JyB9WavMs
f8545ce6f4 Added a comment: Thanks 2014-01-02 00:41:28 +00:00
Joey Hess
020230e46d Merge branch 'master' of ssh://git-annex.branchable.com 2014-01-01 20:37:06 -04:00
Joey Hess
27fccbd350 devblog 2014-01-01 20:34:17 -04:00
https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U
344110d443 Added a comment 2014-01-02 00:26:20 +00:00
http://joeyh.name/
15a4588116 Added a comment 2014-01-02 00:15:28 +00:00
Joey Hess
0b1ddb69e5 Merge branch 'master' of ssh://git-annex.branchable.com 2014-01-01 20:12:41 -04:00
Joey Hess
8e3032df2d added GETWANTED, SETWANTED for Tobias's flickr remote
This was unexpectedly difficult because of a depdenency cycle. To parse a
preferred content expression involves several things that need to operate
on the list of remotes. Which needs Remote.External. The only way to avoid
this cycle (I tried breaking it at several points) was to skip parsing the
expression in SETWANTED.

That's sorta ok, because git-annex already has to deal with unparsable
preferred content expressions being stored, in order to handle eg,
upgrades. But I'm still not very happy that I cannot check it.

I feel this is a strong indication that I need to beware of further
bloating the special remote protocol interface.
2014-01-01 20:12:20 -04:00