mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
filepath: add struct_v
This commit is contained in:
parent
a52203e266
commit
9586cd3eb0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user