]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: change src_oid encoding -- FLAG DAY
authorSage Weil <sage@newdream.net>
Tue, 2 Aug 2011 21:19:41 +0000 (14:19 -0700)
committerSage Weil <sage@newdream.net>
Tue, 2 Aug 2011 21:20:36 +0000 (14:20 -0700)
commitacc8600c00c193142e48ce7aa1b9631128335b87
tree8c326f4b6cac35dbc06d6d9bbd46b7f5579de2c9
parent23a46f283072dec3a19687a73b428e4d4c7e4572
osd: change src_oid encoding -- FLAG DAY

The old encoding was mutually exclusive with putting any data payload on
the operation.  That was stupid.. we can't, for example, do xattr ops then
on a src_oid.

Fix this by just including the oid in the data payload inline whenever the
bit is set in the op code.  This changes the client protocol in an
incompatible way, which means users of the CLONERANGE operation need to be
upgrade/downgraded in unison.

Signed-off-by: Sage Weil <sage@newdream.net>
src/messages/MOSDOp.h