initial code repo
[stor4nfv.git] / src / ceph / src / messages / MGatherCaps.h
diff --git a/src/ceph/src/messages/MGatherCaps.h b/src/ceph/src/messages/MGatherCaps.h
new file mode 100644 (file)
index 0000000..4d73efa
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef CEPH_MGATHERCAPS_H
+#define CEPH_MGATHERCAPS_H
+
+#include "msg/Message.h"
+
+
+class MGatherCaps : public Message {
+ public:
+  inodeno_t ino;
+
+  MGatherCaps() :
+    Message(MSG_MDS_GATHERCAPS) {}
+private:
+  ~MGatherCaps() override {}
+
+public:
+  const char *get_type_name() const override { return "gather_caps"; }
+  void print(ostream& o) const override {
+    o << "gather_caps(" << ino << ")";
+  }
+
+  void encode_payload(uint64_t features) override {
+    ::encode(ino, payload);
+  }
+  void decode_payload() override {
+    bufferlist::iterator p = payload.begin();
+    ::decode(ino, p);
+  }
+
+};
+
+#endif