cls/rgw: init op in rgw_cls_obj_complete_op ctor

Turned up by the encoding/decoding unit tests.

Signed-off-by: Sage Weil <sage@inktank.com>
mds: fix rename_rollback::drec cctor

Signed-off-by: Sage Weil <sage@inktank.com>
mds: make rename_rollback::drec not assert on unexpected d_type

Signed-off-by: Sage Weil <sage@inktank.com>
test/encoding/import-genearted: fix

Dest dir was wrong, cp shortcut check was wrong.

Signed-off-by: Sage Weil <sage@inktank.com>
msg/Message: use old footer for encoded message dump

This avoids the need for a conditional decoding check on ceph-dencoder,
and makes it match up with what encode_message() is doing.  The new(ish)
fields in the footer (the signature) is not useful for the object
corpus.

Signed-off-by: Sage Weil <sage@inktank.com>
osd/OSDmap: fix OSDMap::Incremental::dump() for new pool names

The name is always present when pools are created, but not when they are
modified.  Also, a name may be present with a new_pools entry if the pool
is just renamed.  Separate it out completely in the dump.

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
ceph-object-corpus: new objects for almost-dumpling

Signed-off-by: Sage Weil <sage@inktank.com>
mon: add encoding tests for MonitorDBStore data types

Signed-off-by: Sage Weil <sage@inktank.com>
osd: add encoding tests for PushOp, PullOp, PushReplyOp

Signed-off-by: Sage Weil <sage@inktank.com>
mds: add encoding test for inode_backtrace_t; note incompat in corpus

Signed-off-by: Sage Weil <sage@inktank.com>
mon: add encoding tests for newish MMonSync, MMonScrub

Signed-off-by: Sage Weil <sage@inktank.com>
osd: reenable pg_query_t test

This was disabled back in 4ce17cca2e924b2ef9565d5c345cd602bcc6dd98; not
sure why.

Signed-off-by: Sage Weil <sage@inktank.com>
doc/dev: add corpus.rst

Structure of the corpus dir, how to add to it.

Signed-off-by: Sage Weil <sage@inktank.com>
cls_refcount: add type tests

Signed-off-by: Sage Weil <sage@inktank.com>
cls_rgw: add missing type tests

Signed-off-by: Sage Weil <sage@inktank.com>
Merge remote-tracking branch 'gh/wip-corpus' into next

Rgw bits Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>