]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
filestore: allow clone_range to different offsets
authorSage Weil <sage@newdream.net>
Thu, 2 Jun 2011 16:19:39 +0000 (09:19 -0700)
committerSage Weil <sage@newdream.net>
Thu, 2 Jun 2011 16:19:39 +0000 (09:19 -0700)
commit0cce0a5e991b789c2ff31fb8c14b3925b0ffc2ee
tree94589c402faa8cd22851a812b538cda7257fd00e
parent502baeab980a476365ab134037c553f23765b4fa
filestore: allow clone_range to different offsets

The old OP_CLONERANGE would only clone a range of bytes at the same offset
in both objects.  Add an OP_CLONERANGE2 op code that adds a dst offset.
Continue to support the old op code so that we can decode old transactions.

Signed-off-by: Sage Weil <sage@newdream.net>
src/os/FileStore.cc
src/os/FileStore.h
src/os/ObjectStore.h
src/osd/ReplicatedPG.cc