erasure-code: store and compare encoded contents (firefly)

http://tracker.ceph.com/issues/9420 Refs: #9420

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 497a82b2b3113dae724a43d8d4c7e430acf44120)