summaryrefslogtreecommitdiff
path: root/src/messages
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2011-07-12 17:24:19 -0700
committerSage Weil <sage@newdream.net>2011-07-13 14:57:57 -0700
commit314be340812e5a66b136aee86daf6ead961cf7a1 (patch)
tree9a90e115fbf8e40f0c138ed734b314c089cd2e97 /src/messages
parenta928f767b974cd36f4be6ea618c5cec366d28362 (diff)
downloadceph-314be340812e5a66b136aee86daf6ead961cf7a1.tar.gz
mds: improve print() for MInodeFileCaps
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/messages')
-rw-r--r--src/messages/MInodeFileCaps.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/messages/MInodeFileCaps.h b/src/messages/MInodeFileCaps.h
index 24182f6a8cc..bbe3707736e 100644
--- a/src/messages/MInodeFileCaps.h
+++ b/src/messages/MInodeFileCaps.h
@@ -38,7 +38,10 @@ private:
~MInodeFileCaps() {}
public:
- const char *get_type_name() { return "Icap";}
+ const char *get_type_name() { return "inode_file_caps";}
+ void print(ostream& out) {
+ out << "inode_file_caps(" << ino << " " << ccap_string(caps) << ")";
+ }
void encode_payload(CephContext *cct) {
::encode(from, payload);