Merge branch 'master' into requirednumcopies
authorJoey Hess <joeyh@joeyh.name>
Wed, 6 Jan 2021 18:24:09 +0000 (14:24 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 6 Jan 2021 18:24:09 +0000 (14:24 -0400)
1  2 
doc/todo/lockContent_for_special_remotes.mdwn

index 722e47696792f6dd1abaa3e9ca1010d0c6754a5b,59dba9e8474026ed178216381d92add333332525..c5929404b524ed5400633767c533f85f1ca7ba58
@@@ -1,6 -1,6 +1,6 @@@
  Support lockContent in more special remotes. This allows dropping
  content from a special remote when the only copies are in other special
--remotes.
++remotes, without needing to set mincopies to 0 and risk losing content.
  
  (All the easy ones, eg read-only special remotes, are implemented already.)
  
@@@ -12,7 -12,7 +12,7 @@@
    If this were implemented in git-annex, and some special remote program
    didn't used to support it, and implemented REMOVE w/o checking a lock,
    then making that program support lockContent would run the risk
--  of a misture of the old and new version being in use for the same remote,
++  of a mixture of the old and new version being in use for the same remote,
    which could result in data loss.
  
    To avoid that, the author of the special remote would need to either
  * adb could use some shell trick perhaps.. But it would depend on doing
    locking in /sdcard, which seems likely to be a massive ball of POSIX
    incompliance and pain.
--
------
--
--I was thinking about something related to this recently. Dropping currently
--guaranteeds numcopies will be maintained for remotes that support
--lockContent. But when some of the copies are on special remotes, this
--is not guaranteed. It only makes sure lockContent is keeping one copy
--locked, and can verify the existence of the other copies less stringently.
--
--So perhaps it would be good to make this explicit in the configuration,
- by adding a mincopies. (Analagous to required content configs.)
 -by adding a requirednumcopies. (Analagous to required content configs.)
--Defaulting to 1 as now, but if the user wants to they can set it higher,
- perhaps as high as their numcopies, or higher.
 -perhaps as high as their numcopies (or even just set it to 1000 and make
 -it be treated the same value as numcopies when it's >= numcopies.)
 -
 -> Started on requirednumcopies branch --[[Joey]]