]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef CEPH_MGATHERCAPS_H |
2 | #define CEPH_MGATHERCAPS_H | |
3 | ||
4 | #include "msg/Message.h" | |
5 | ||
6 | ||
11fdf7f2 TL |
7 | class MGatherCaps : public MessageInstance<MGatherCaps> { |
8 | public: | |
9 | friend factory; | |
10 | ||
11 | ||
7c673cae FG |
12 | inodeno_t ino; |
13 | ||
11fdf7f2 | 14 | protected: |
7c673cae | 15 | MGatherCaps() : |
11fdf7f2 | 16 | MessageInstance(MSG_MDS_GATHERCAPS) {} |
7c673cae FG |
17 | ~MGatherCaps() override {} |
18 | ||
19 | public: | |
11fdf7f2 | 20 | std::string_view get_type_name() const override { return "gather_caps"; } |
7c673cae FG |
21 | void print(ostream& o) const override { |
22 | o << "gather_caps(" << ino << ")"; | |
23 | } | |
24 | ||
25 | void encode_payload(uint64_t features) override { | |
11fdf7f2 TL |
26 | using ceph::encode; |
27 | encode(ino, payload); | |
7c673cae FG |
28 | } |
29 | void decode_payload() override { | |
11fdf7f2 TL |
30 | using ceph::decode; |
31 | auto p = payload.cbegin(); | |
32 | decode(ino, p); | |
7c673cae FG |
33 | } |
34 | ||
35 | }; | |
36 | ||
37 | #endif |