1
0
mirror of https://github.com/ceph/ceph synced 2025-04-01 00:26:47 +00:00

osd: new encoding for pool_snap_info_t

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2012-02-02 11:35:31 -08:00
parent a03ff1b57e
commit fc869dee1e

View File

@ -365,20 +365,20 @@ void pool_snap_info_t::dump(Formatter *f) const
void pool_snap_info_t::encode(bufferlist& bl) const
{
__u8 struct_v = 1;
::encode(struct_v, bl);
ENCODE_START(2, 2, bl);
::encode(snapid, bl);
::encode(stamp, bl);
::encode(name, bl);
ENCODE_FINISH(bl);
}
void pool_snap_info_t::decode(bufferlist::iterator& bl)
{
__u8 struct_v;
::decode(struct_v, bl);
DECODE_START_LEGACY_COMPAT_LEN(2, 2, 2, bl);
::decode(snapid, bl);
::decode(stamp, bl);
::decode(name, bl);
DECODE_FINISH(bl);
}
void pool_snap_info_t::generate_test_instances(list<pool_snap_info_t*>& o)