]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: pass and verify data+omap digest on copyfrom
authorSage Weil <sage@redhat.com>
Sun, 14 Dec 2014 05:05:46 +0000 (21:05 -0800)
committerSage Weil <sage@redhat.com>
Sat, 20 Dec 2014 15:30:04 +0000 (07:30 -0800)
commitf8c1d4016908353445ec6922d8165a31a600b534
tree69674d750802cb6371764966ca742663ae4bf423
parent75b2bc282300709ce93d0bc48d8432a4d64eb948
osd: pass and verify data+omap digest on copyfrom

Two things here:

 1- Pass the original digest from the source across the wire, if it is
    present.
 2- Calculate a new digest as we receive it, and record that.

If there is a mismatch, we currently crash; need to turn this into an
EIO, most likely.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/osd/osd_types.cc
src/osd/osd_types.h
src/osdc/Objecter.h
src/test/librados/misc.cc