filepath: add struct_v

This commit is contained in:
Sage Weil 2010-01-27 14:27:57 -08:00
parent a52203e266
commit 9586cd3eb0

View File

@ -181,11 +181,15 @@ class filepath {
// encoding
void encode(bufferlist& bl) const {
__u8 struct_v = 1;
::encode(struct_v, bl);
::encode(ino, bl);
::encode(path, bl);
}
void decode(bufferlist::iterator& blp) {
bits.clear();
__u8 struct_v;
::decode(struct_v, blp);
::decode(ino, blp);
::decode(path, blp);
}