From 9586cd3eb0c6e0c6953534d3744262a954a0fbeb Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 27 Jan 2010 14:27:57 -0800 Subject: [PATCH] filepath: add struct_v --- src/include/filepath.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/filepath.h b/src/include/filepath.h index 1eccc5e86554d..3b209caf91cd8 100644 --- a/src/include/filepath.h +++ b/src/include/filepath.h @@ -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); } -- 2.39.5