ReplicatedPG,rados: add CEPH_OSD_[COPY_FROM]_IGNORE_RMED_SNAP

When attempting to promote a particular clone, we need to be able to able to
handle the posibility that the snap we are using to specify the clone may have
been removed.  Also, the cloneid used by the backing pool may not be the same
as the clone id used in the cache pool in the event that the cache pool's
cloneid has been removed before the clone in question has been flushed.  Thus,
we will promote using a snap which currently maps to the clone we want.  The
backend will do 1 of 2 things:
1) If the clone still exists, our requested snap will map to that clone
2) If the clone has been trimmed, we may end up reading from another
subsequent object.
We handle case 2) by, in finish_promote, verifying that our current pool info
indicates that the clone should still exist.

This also allows us to ignore the snaps returned by copy_get.

Fixes: #7942
Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG::finish_promote: add debugging assert for clone_size

Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG::find_object_context: check obs.exists on clone obc before checking snaps

Fixes: #7858
Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG::_scrub: account for clone_overlap on each clone

Otherwise, we end up subtracting off clone_overlap for evicted clones
whose sizes we did not add in.

Fixes: #7964
Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG: use get_clone_bytes on evict/promote

Fixes: #7964
Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG: do not evict head while clone is being promoted

Fixes: #8003
Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG::make_writeable: check for evicted clone before adjusting for clone_overlap

Fixes: #7964
Signed-off-by: Samuel Just <sam.just@inktank.com>
ReplicatedPG::trim_object: account evicted prev clone for stats

If the previous clone is evicted, we shouldn't adjust the stats to
account for its new clone_overlap value.

Fixes: #7964
Signed-off-by: Samuel Just <sam.just@inktank.com>
Merge remote-tracking branches 'origin/wip-sam-testing2', 'upstream/wip-7659', 'origin/wip-7904', 'origin/wip-7916', 'origin/wip-7942' and 'origin/wip-7964' into wip-sam-testing