summaryrefslogtreecommitdiffstats
path: root/src/messages/MGatherCaps.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/messages/MGatherCaps.h
parentInitial commit. (diff)
downloadceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.tar.xz
ceph-483eb2f56657e8e7f419ab1a4fab8dce9ade8609.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/messages/MGatherCaps.h')
-rw-r--r--src/messages/MGatherCaps.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/messages/MGatherCaps.h b/src/messages/MGatherCaps.h
new file mode 100644
index 00000000..fe8b4187
--- /dev/null
+++ b/src/messages/MGatherCaps.h
@@ -0,0 +1,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