mds: move durable Session bits into session_info_t

This keeps the on-disk structure explicitly separate from the in-memory
functional stuff.

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: session_info_t now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: string_snap_t now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: MDSCacheObjectInfo now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
mds: rename MDSTableServer::_pending to mds_table_pending_t

And move it from MDSTableServer into mdstypes.cc, so we can use it
in ceph-dencoder more gracefully (coming up next!).

Signed-off-by: Greg Farnum <greg@inktank.com>
mds: mds_table_pending_t now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: ECommitted now uses modern encoding

Signed-off-by: Sage Weil <sage@inktank.com>
FIXME: curse this linking problem I need to diagnose!
mdsmap: uninline encode/decode

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
FIXME: I'm not quite sure what this bit is supposed to cover. I think
it's just everything, so it probably shouldn't be buried in the middle
of the patchset. But maybe I'm missing a division in the stuff before
and after this one.

mds: add CEPH_FEATURE_MDSENC feature bit

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: move conditional MDSMap encoding into single encode method

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
mds: uninline Capability encoders

Signed-off-by: Sage Weil <sage@inktank.com>
mds: add Capability formatter dumping and test instances

Signed-off-by: Sage Weil <sage@inktank.com>
mds: uninline old_rstat_t encoders

Signed-off-by: Sage Weil <sage@inktank.com>
mds: add old_rstat_t formatter dumping and test instances

Signed-off-by: Sage Weil <sage@inktank.com>
common: uninline DecayCounter

Signed-off-by: Sage Weil <sage@inktank.com>
mds: modernize SimpleLock on-wire encoding

This is a wire protocol change.

Signed-off-by: Sage Weil <sage@inktank.com>