Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / messages / MGatherCaps.h
1 #ifndef CEPH_MGATHERCAPS_H
2 #define CEPH_MGATHERCAPS_H
3
4 #include "msg/Message.h"
5
6
7 class MGatherCaps : public Message {
8  public:
9   inodeno_t ino;
10
11   MGatherCaps() :
12     Message(MSG_MDS_GATHERCAPS) {}
13 private:
14   ~MGatherCaps() override {}
15
16 public:
17   const char *get_type_name() const override { return "gather_caps"; }
18   void print(ostream& o) const override {
19     o << "gather_caps(" << ino << ")";
20   }
21
22   void encode_payload(uint64_t features) override {
23     ::encode(ino, payload);
24   }
25   void decode_payload() override {
26     bufferlist::iterator p = payload.begin();
27     ::decode(ino, p);
28   }
29
30 };
31
32 #endif