git-annex/Remote/Helper
Joey Hess d2b27ca136
add content retention files
This allows lockContentShared to lock content for eg, 10 minutes and
if the process then gets terminated before it can unlock, the content
will remain locked for that amount of time.

The Windows implementation is not yet tested.

In P2P.Annex, a duration of 10 minutes is used. This way, when p2pstdio
or remotedaemon is serving the P2P protocol, and is asked to
LOCKCONTENT, and that process gets killed, the content will not be
subject to deletion. This is not a perfect solution to
doc/todo/P2P_locking_connection_drop_safety.mdwn yet, but it gets most
of the way there, without needing any P2P protocol changes.

This is only done in v10 and higher repositories (or on Windows). It
might be possible to backport it to v8 or earlier, but it would
complicate locking even further, and without a separate lock file, might
be hard. I think that by the time this fix reaches a given user, they
will probably have been running git-annex 10.x long enough that their v8
repositories will have upgraded to v10 after the 1 year wait. And it's
not as if git-annex hasn't already been subject to this problem (though
I have not heard of any data loss caused by it) for 6 years already, so
waiting another fraction of a year on top of however long it takes this
fix to reach users is unlikely to be a problem.
2024-07-03 14:58:39 -04:00
..
Chunked filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
AWS.hs correct obsolete comment 2023-01-31 14:42:26 -04:00
Chunked.hs git-remote-annex: Display full url when using remote with the shorthand url 2024-05-24 17:15:31 -04:00
Encryptable.hs prevent using git-remote-annex with unsuitable special remote configs 2024-05-14 13:52:20 -04:00
ExportImport.hs export tree: avoid confusing output about renaming files 2024-03-09 13:50:26 -04:00
Git.hs list proxied remotes and cluster gateways in git-annex info 2024-06-30 11:14:13 -04:00
Hooks.hs add optional object file location to storeKey 2024-07-01 10:42:27 -04:00
Http.hs git-lfs gitlab interoperability fix 2021-11-10 13:51:11 -04:00
Messages.hs filter out control characters in all other Messages 2023-04-11 12:58:01 -04:00
P2P.hs add content retention files 2024-07-03 14:58:39 -04:00
Path.hs implement Unavilable for borg bup ddar directory rsync 2023-08-16 15:48:09 -04:00
ReadOnly.hs add optional object file location to storeKey 2024-07-01 10:42:27 -04:00
Special.hs add optional object file location to storeKey 2024-07-01 10:42:27 -04:00
Ssh.hs support a P2PConnection that uses TMVars rather than Handles 2024-06-28 11:22:29 -04:00
ThirdPartyPopulated.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00