always check numcopies when moving from cluster
authorJoey Hess <joeyh@joeyh.name>
Sun, 23 Jun 2024 16:00:50 +0000 (12:00 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sun, 23 Jun 2024 16:00:50 +0000 (12:00 -0400)
commitd0aec8f623ad4d4466215f4c587dc1a8734fdec2
tree6dea37cf0104b7d6daa4bb50ecd1fb9c237add4c
parentec5b6454f40f39413ed33444cd97ae8db3de5761
always check numcopies when moving from cluster

When the destination does not start with a copy, the cluster has one or
more copies. If more, dropping would reduce the number of copies, so
numcopies must be checked.

Considered checking how many nodes of the cluster contain a copy. If
only 1 node does, it could allow a move without checking numcopies.
The problem with that, though, is that other nodes of the cluster could
have copies that we don't know about. And dropping from a cluster tries
to drop from all nodes, so will drop even from those. So any drop from a
cluster can remove more than 1 copy.
Command/Move.hs
doc/todo/git-annex_proxies.mdwn