From dc38d48948737be5b07814ddf198d4f2c14166bc Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 4 Mar 2010 16:46:03 -0800 Subject: [PATCH] mds: dump misc struct sizes to log --- src/mds/MDS.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index ce48dd6a2fc..2079de162fb 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -382,6 +382,17 @@ void MDS::send_message_client(Message *m, entity_inst_t clientinst) int MDS::init() { + dout(10) << sizeof(CInode) << "\tCInode" << dendl; + dout(10) << sizeof(CDentry) << "\tCDentry" << dendl; + dout(10) << sizeof(CDir) << "\tCDir " << dendl; + dout(10) << sizeof(Capability) << "\tCapability " << dendl; + dout(10) << sizeof(inode_t) << "\tinode_t " << dendl; + dout(10) << sizeof(nest_info_t) << "\tnest_info_t " << dendl; + dout(10) << sizeof(frag_info_t) << "\tfrag_info_t " << dendl; + dout(10) << sizeof(fnode_t) << "\tfnode_t " << dendl; + dout(10) << sizeof(SimpleLock) << "\tSimpleLock " << dendl; + dout(10) << sizeof(ScatterLock) << "\tScatterLock " << dendl; + messenger->add_dispatcher_tail(this); messenger->add_dispatcher_head(&logclient);