blob: fe8b4187c5539c1ddc4918cf8e3a3607e72d6145 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef CEPH_MGATHERCAPS_H
#define CEPH_MGATHERCAPS_H
#include "msg/Message.h"
class MGatherCaps : public MessageInstance<MGatherCaps> {
public:
friend factory;
inodeno_t ino;
protected:
MGatherCaps() :
MessageInstance(MSG_MDS_GATHERCAPS) {}
~MGatherCaps() override {}
public:
std::string_view 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 {
using ceph::encode;
encode(ino, payload);
}
void decode_payload() override {
using ceph::decode;
auto p = payload.cbegin();
decode(ino, p);
}
};
#endif
|