check mincopies is satisfied even when numcopies is known to be satisfied
I had been assuming that numcopies would be a larger or at most equal to mincopies, so no need to check both. But users get confused and use configs that don't really make sense, so make sure to handle mincopies being larger than numcopies. Also add something to the mincopies man page to discourage this misconfiguration. This commit was sponsored by Denis Dzyubenko on Patreon.
This commit is contained in:
parent
1c05194430
commit
a166d2520b
6 changed files with 48 additions and 10 deletions
|
@ -25,6 +25,12 @@ repositories, git-annex may violate the numcopies setting.
|
|||
In these unusual situations, git-annex ensures that the number of copies
|
||||
never goes below mincopies.
|
||||
|
||||
It is a good idea to not only rely on only setting mincopies. Set
|
||||
numcopies as well, to a larger number, and keep mincopies at the
|
||||
bare minimum you're comfortable with. Setting mincopies to a large
|
||||
number, rather than setting numcopies will in some cases prevent
|
||||
droping content in entirely safe situations.
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
[[git-annex]](1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue